Part Number Hot Search : 
P3601MSH ICX41 05910 2405DH LC72146V 15Q7Q LTC34 CXA1642P
Product Description
Full Text Search
 

To Download ST16C650A Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  exar corporation 48720 kato road, fremont ca, 94538 ? (510) 668-7000 ? fax (510) 668-7017 ? www.exar.com ? ? ? ? ST16C650A 2.90v to 5.5v uart with 32-byte fifo january 2004 rev. 5.0.0 general description the ST16C650A 1 (650a) is a 2.90 to 5.5 volt universal asynchronous receiver and transmitter (uart) with 5 volt tolerant inputs. this device supports intel and pc isa mode data bus interfaces and is software compatible to industry standard 16c450, 16c550, st16c580 and ST16C650A uarts. the 650a has 32 bytes of tx and rx fifos and is capable of operating up to serial data rates of 3.125 mbps at 5 volt supply voltage. the internal registers include the 16c550 register set plus exars enhanced registers for additional features to support todays highly demanding data communication needs. the enhanced features include automatic hardware and software flow control, selectable tx and rx trigger levels, and wireless infrared (irda) encoder/decoder. the device provides a new capability to give user the ability to program the wireless infrared encoder output pulse width, hence reducing the power consumption of a handheld unit. the ST16C650A device comes in the 44-pin plcc and 48-pin tqfp packages in both the commercial and industrial temperature ranges. n ote : 1 covered by us patents #5,649,122. features added features in top mark date code of "hc yyww" and newer: n 2.90 to 5.5 volt operation n 5 volt tolerant inputs n automatic rs485 half-duplex control output n programmable infrared encoder pulse width n sleep mode with wake-up indicator n device id & revision n up to 3.125 mbps data rate at 5 volts added feature in top mark date code of "i2 yyww" and newer: n 0 ns address hold time intel or pc mode 8-bit bus interface 32-byte transmit and receive fifos automatic hardware (rts/cts) flow control hardware flow control hysteresis automatic software (xon/xoff) flow control applications battery operated electronics handheld terminal personal digital assistants cellular phones dataport wireless infrared data communications systems f igure 1. b lock d iagram xtal1/clk xtal2 crystal osc/buffer dtr#, dsr#, rts#, cts#, cd#, ri# intel, motorola or pc data bus interface 32 byte tx fifo baud rate generator infrared encoder and pulse width control transmitter uart configuration regs ior ior# 32 byte rx fifo infrared decoder receiver with auto software flow control modem control signals tx rx cts flow control rts flow control brg prescaler cs1 cs0 ddis# int txrdy# rdrdy# a2:a0 d7:d0 iow cs2# sel s1 s2 s3 irqa irqb irqc iow# reset pc mode: com 1 to 4 decode logic
ST16C650A ? ? ? ? 2.90v to 5.5v uart with 32-byte fifo rev. 5.0.0 2 f igure 2. i ntel and pc mode p in o ut 44-plcc package 48-tqfp package 48 47 46 45 44 43 42 41 40 39 38 37 1 2 3 4 5 6 7 8 9 10 11 12 36 35 34 33 32 31 30 29 28 27 26 25 13 14 15 16 17 18 19 20 21 22 23 24 n.c. d5 d6 d7 rclk n.c. rx tx cs0 cs1 -cs2 -baudout clksel xtal1 xtal2 iow# iow gnd ior# ior n.c. as# sel reset op1# dtr# rts# op2# int rxrdy# a0 a1 a2 n.c. n.c. d4 d3 d2 d1 d0 vcc ri# cd# dsr# cts# n.c. ST16C650Acq48 intel bus mode (sel = vcc) ddis# txrdy# 48 47 46 45 44 43 42 41 40 39 38 37 1 2 3 4 5 6 7 8 9 10 11 12 36 35 34 33 32 31 30 29 28 27 26 25 13 14 15 16 17 18 19 20 21 22 23 24 n.c. d5 d6 d7 s2 a4 rx tx a5 a6 a7 lpt1# n.c. xtal1 xtal2 iow# a8 gnd ior# a3 s1 lpt2# irqc aen# sel reset op1# dtr# rts# s3 irqa irqb a0 a1 a2 n.c. n.c. d4 d3 d2 d1 d0 vcc ri# cd# dsr# cts# a9 ST16C650Acq48 pc mode (sel = gnd) 6 5 4 3 2 1 44 43 42 41 40 7 8 9 10 11 12 13 14 15 16 17 39 38 37 36 35 34 33 32 31 30 29 18 19 20 21 22 23 24 25 26 27 28 d5 d6 d7 rclk rx n.c. tx cs0 cs1 cs2# baudout# reset op1# dtr# rts# op2# sel int rxrdy# a0 a1 a2 d4 d3 d2 d1 d0 n.c. vcc ri# cd# dsr# cts# xtal1 xtal2 iow# iow gnd n.c. ior# ior ddis# txrdy# as# ST16C650Acj44 intel bus mode (sel = vcc) 6 5 4 3 2 1 44 43 42 41 40 7 8 9 10 11 12 13 14 15 16 17 39 38 37 36 35 34 33 32 31 30 29 18 19 20 21 22 23 24 25 26 27 28 d5 d6 d7 s2 rx a4 tx a5 a6 a7 lpt1# reset op1# dtr# rts# s3 sel irqa irqb a0 a1 a2 d4 d3 d2 d1 d0 a9 vcc ri# cd# dsr# cts# xtal1 xtal2 iow# a8 gnd s1 ior# a3 lpt2# irqc aen# ST16C650Acj44 pc mode (sel = gnd) 40-pdip package 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 d0 d1 d2 d3 d4 d5 d6 d7 rclk rx tx cs0 cs1 cs2# baudout# xtal1 xtal2 iow# iow gnd vcc ri# cd# dsr# cts# reset op1# dtr# rts# op2# int rxrdy# a0 a1 a2 as# txrdy# ddis# ior ior# ST16C650Acp40
? ? ? ? ST16C650A rev. 5.0.0 2.90v to 5.5v uart with 32-byte fifo 3 pin descriptions ordering information p art n umber p ackage o perating t emperature r ange d evice s tatus ST16C650Acp40 40-lead pdip 0c to +70c discontinued. see the ST16C650Acq48 for a replacement. ST16C650Acj44 44-lead plcc 0c to +70c active ST16C650Acq48 48-lead tqfp 0c to +70c active ST16C650Aip40 40-lead pdip -40c to +85c discontinued. see the ST16C650Aiq48 for a replacement. ST16C650Aij44 44-lead plcc -40c to +85c active ST16C650Aiq48 48-lead tqfp -40c to +85c active n ame 40- pdip p in # 44- plcc p in # 48- tqfp p in # t ype d escription 16 (intel) mode data bus interface. the sel pin is connected to vcc. a2 a1 a0 26 27 28 29 30 31 26 27 28 i address bus lines [2:0] a2:a0 selects internal uarts configuration registers. d7 d6 d5 d4 d3 d2 d1 d0 8 7 6 5 4 3 2 1 9 8 7 6 5 4 3 2 4 3 2 47 46 45 44 43 io data bus lines [7:0] (bidirectional) ior# 21 24 19 i input/output read (active low) the falling edge instigates an internal read cycle and retrieves the data byte from an internal register pointed by the address lines [a2:a0], places it on the data bus to allow the host processor to read it on the leading edge. its function is the same as ior, except it is active low. either an active ior# or ior is required to transfer data from 650a to cpu during a read operation. if this input is unused, it should be connected to vcc to minimize supply current. ior 222520 i input/output read (active high) same as ior# but active high. if this input is unused, it should be con- nected to gnd to minimize supply current. iow# 18 20 16 i input/output write (active low) - intel bus mode the falling edge instigates the internal write cycle and the trailing edge transfers the data byte on the data bus to an internal register pointed by the address lines [a2:a0]. its function is the same as iow, except it is active low. either an active iow# or iow is required to transfer data from 650a to the intel type cpu during a write operation. if this input is unused, it should be connected to vcc to minimize supply current.
ST16C650A ? ? ? ? 2.90v to 5.5v uart with 32-byte fifo rev. 5.0.0 4 iow 192117 i input/output write (active high) same as iow# but active high. if this input is unused, it should be con- nected to gnd to minimize supply current. cs0 12 14 9 i chip select 0 input (active high) this input selects the ST16C650A device. if cs1 or cs2# is used as the chip select then this pin must be connected to vcc. the 650a is selected when all three chip selects are active. see figure 3 through figure 5 . cs1 131510 i chip select 1 input (active high) this input selects the ST16C650A device. if cs0 or cs2# is used as the chip select then this pin must be connected to vcc. the 650a is selected when all three chip selects are active. see figure 3 through figure 5 . cs2# 14 16 11 i chip select 2 input (active low) this input selects the ST16C650A device. if cs0 or cs1 is used as the chip select then this pin must be connected to gnd. the 650a is selected when all three chip selects are active. see figure 3 through figure 5 . int 303330 o interrupt output this output becomes active whenever the transmitter, receiver, line and/or modem status register has an active condition. see interrupt section for more detail. when im# pin is at logic 0 (intel bus mode), this interrupt out- put may be set to normal active high or active high open source to provide wire-or capability by connecting a 1k to 10k ohms resistor between this pin and ground. as# 25 28 24 i address strobe input (active low) in the intel bus mode, the leading-edge transition of as# latches the chip selects (cs0, cs1, cs2#) and the address lines a0, a1 and a2. this input is used when the address lines are not stable for the duration of a read or write operation. in devices with top mark date code of "i2 yyww" and newer, the address bus is latched even if this input is not used. these devices feature a 0 ns address hold time. see ac electrical characteris- tics . if not required, this input can be permanently tied to gnd. txrdy# 24 27 23 o uart transmitter ready (active low) the output provides the tx fifo/thr status. see ta b l e 2 . if it is not used, leave it unconnected. rxrdy# 29 32 29 o uart receiver ready (active low) this output provides the rx fifo/rhr status for receive channel a. see ta b l e 2 . if it is not used, leave it unconnected. pc mode interface signals. connect sel pin to gnd and im# pin to gnd to select pc mode. a3 a4 a5 a6 a7 a8 a9 - - - - - - - 25 12 14 15 16 21 1 20 6 9 10 11 17 37 i pc mode additional address lines in the pc mode, these are the additional address lines from the host address bus. they are inputs to the on-board chip select decode function for com 1-4 and lpt ports. see ta b l e 1 for details. the pins a4 and a9 have internal 100k w pull-up resistors. n ame 40- pdip p in # 44- plcc p in # 48- tqfp p in # t ype d escription
? ? ? ? ST16C650A rev. 5.0.0 2.90v to 5.5v uart with 32-byte fifo 5 aen# - 28 24 i address enable input (active low) when aen# transition to logic 0, it decodes and validates com 1-4 ports address per s1, s2 and s3 inputs. s1 s2 s3 - - - 23 10 35 21 5 31 i select 1 to 3 these are the standard pc com 1-4 ports and irq selection inputs. see ta b l e 1 and ta b l e 3 for details. the s1 pin has an internal 100k w pull-up resistor. irqa irqb irqc - - - 33 32 27 30 29 23 o interrupt request a, b and c outputs (active high, tri-state) these are the interrupt outputs associated with com 1-4 to be connected to the host data bus. see interrupt section for details. the interrupt requests a, b or c functions as irqx to the pc bus. irqx is enabled by setting mcr bit-3 to logic 1 and the desired interrupt(s) in the interrupt enable register (ier). lpt1# - 17 12 o line printer port-1 decode logic output (active low) this pin functions as the pc standard lpt-1 printer port address decode logic output, see ta b l e 1 . the baud rate generator clock output, baud- out#, is internally connected to the rclk input in the pc mode. lpt2# - 26 22 o line printer port-2 decode logic output (active low) this pin functions as the pc standard lpt-2 printer port address decode logic output, see ta b l e 1 . modem or serial i/o interface tx 11 13 8 o transmit data or wireless infrared transmit data this output is active low in normal standard serial interface operation (rs- 232, rs-422 or rs-485) and active high in the infrared mode. infrared mode can be enabled by connecting pin enir to vcc or through software setting after power up. rx 10 11 7 i receive data or wireless infrared receive data normal received data input idles at logic 1 condition and logic 0 in the infrared mode. the wireless infrared pulses are applied to the decoder. this input must be connected to its idle logic state in either normal, logic 1, or infrared mode, logic 0, else the receiver may report receive break and/ or error condition(s). rts# 32 36 32 o request to send or general purpose output (active low) this port may be used for one of two functions: 1) automatic hardware flow control, see efr bit-6, mcr bit-1and ier bit- 6. 2) rs485 half-duplex direction control, see xfr bits 2 and 5. rts# output must be asserted before auto rts flow control can start. cts# 36 40 38 i clear to send or general purpose input (active low) if used for automatic hardware flow control, data transmission will be stopped when this pin is de-asserted and will resume when this pin is asserted again. see efr bit-7 and ier bit-7. dtr# 33 37 33 o data terminal ready or general purpose output (active low) dsr# 37 41 39 i data set ready input or general purpose input (active low) n ame 40- pdip p in # 44- plcc p in # 48- tqfp p in # t ype d escription
ST16C650A ? ? ? ? 2.90v to 5.5v uart with 32-byte fifo rev. 5.0.0 6 pin type: i=input, o=output, io= input/output, od=output open drain. cd# 384240 i carrier detect input or general purpose input (active low) ri# 394341 i ring indicator input or general purpose input (active low) ancillary signals xtal1 16 18 14 i crystal or external clock input. caution: this input is not 5v tolerant. xtal2 17 19 15 o crystal or buffered clock output rclk 9 10 5 i receiver clock this input is used as external 16x clock input to the receiver section. con- nect the baudout# pin to this input externally. baudout# 15 17 12 o baud rate generator output (active low) this pin provides the 16x clock of the selected data rate from the baud rate generator. the rclk pin must be connected externally to baud- out# when the receiver is operating at the same data rate. when the pc mode is selected, the baud rate generator clock output is internally connected to the rclk input. this pin then functions as the lpt-1 printer port decode logic output, see ta b l e 3 . sel - 34 36 i pc mode select (active low) when this input is at logic 0, it enables the on-board chip select decode function according to pc isa bus com[4:1] and irq[4:3] port definitions. see ta b l e 3 for details. this pin has an internal 100k w pull-up resistor. ddis# 23 26 22 o drive disable output this pin goes to a logic 0 whenever the host cpu is reading data from the 650a. it can control the direction of a data bus transceiver between the cpu and 650a or other logic functions. reset 35 39 35 i reset input (active high) a 40 ns minimum active pulse on this pin will reset the internal registers and all outputs. the uart transmitter output will be held at logic 1, the receiver input will be ignored and outputs are reset. see uart reset conditions in ta b l e 1 3 . op1# 34 38 34 o output port 1 general purpose output. op2# 31 35 31 o output port 2 general purpose output. vcc 404442pwr 2.90v to 5.5v supply voltage all inputs are 5v tolerant except for xtal for devices with date code top mark of "hc yyww" and newer. devices with date code top mark of "gc yyww" and older do not have 5v tolerant inputs. gnd 202218pwr power supply common ground nc - - 1, 13, 25 - no connect n ame 40- pdip p in # 44- plcc p in # 48- tqfp p in # t ype d escription
? ? ? ? ST16C650A rev. 5.0.0 2.90v to 5.5v uart with 32-byte fifo 7 1.0 product description the ST16C650A (650a) is a low power uart that can operate from 2.90v to 5.5v power supplies. its inputs are 5v tolerant to facilitate interconnection to transceiver devices of rs-232, rs-422 or rs-485. the 650a is software compatible to the industry standard 16c550 with some additional enhanced features. the 650a provides serial asynchronous receive data synchronization, parallel-to-serial data conversion for the transmitter section and serial-to-parallel data conversions for receiver section. these functions are necessary for converting the serial data stream into parallel data that is required with digital data systems. synchronization for the serial data stream is accomplished by adding start and stop bits to the transmitted data to form a data character (character orientated protocol). data integrity is ensured by attaching a parity bit to the data character. the parity bit is checked by the receiver for any transmission bit errors. the electronic circuitry to provide all these functions is fairly complex especially when manufactured on a single integrated silicon chip. the ST16C650A represents such an integration with greatly enhanced features. the 650a is fabricated with an advanced cmos process. the 650a supports standard 8-bit intel or pc bus interfaces through an input selection pin (sel input pin). the intel bus uses the standard read and write signals for all bus transactions. the pc bus mode associates with the pc isa bus and follow the industry standard pc definitions for com 1-4 serial port addresses. the 650a includes on-board chip select decode logic and selection for the proper interrupt request. this eliminates the need for an external logic array device. the 650a has 32-bytes each of transmit and receive fifos, automatic rts/cts hardware flow control with hysteresis, automatic xon/xoff and special character software flow control, selectable transmit and receive fifo trigger levels, wireless infrared encoder and decoder (irda ver. 1.0), programmable baud rate generator with a prescaler of divide by 1 or 4, and data rates up to 3.125 mbps with a 16x sampling clock rate. the 650a is an upward solution that provides 32 bytes of transmit and receive fifo memory, instead of 16 bytes provided in the 16c550, or none in the 16c450. the 650a is designed to work with high speed communication devices, that require fast data processing time. increased performance is realized in the 650a by the larger transmit and receive fifos. this allows the external processor to handle more networking tasks within a given time. for example, the standard st16c550 with a 16 byte fifo, unloads 16 bytes of receive data in 1.53 ms (this example uses a character length of 11 bits, including start/stop bits at 115.2kbps). this means the external cpu will have to service the receive fifo at 1.53 ms intervals. however with the 32 byte fifo in the 650a, the data buffer will not require unloading/loading for 3.05 ms. this increases the service interval giving the external cpu additional time for other applications and reducing the overall uart interrupt servicing time. in addition, the 4 selectable levels of fifo trigger interrupt and automatic hardware/software flow control is uniquely provided for maximum data throughput performance especially when operating in a multi-channel environment. the combination of the above greatly reduces the bandwidth requirement of the external controlling cpu, increases performance, and reduces power consumption. the rich feature set of the 650a is available through internal registers. automatic hardware/software flow control, selectable transmit and receive fifo trigger levels, selectable tx and rx baud rates, infrared encoder/decoder interface, modem interface controls, and a sleep mode are all standard features. in the pc mode, two tri-state interrupt lines (irqb and irqc) and one selectable open source interrupt output (irqa) are available. the open source interrupt scheme allows multiple interrupts to be combined in a wire-or operation, thus reducing the number of interrupt lines in larger systems. following a power on reset or an external reset, the 650a is software compatible with previous generation of uarts, 16c450, 16c550 and ST16C650A.
ST16C650A ? ? ? ? 2.90v to 5.5v uart with 32-byte fifo rev. 5.0.0 8 2.0 functional descriptions 2.1 host data bus interface the host interface is 8 data bits wide with 3 address lines and control signals to execute bus read and write transactions. the 650a supports 3 type of host interfaces: intel, motorola and pc mode. the intel and motorola interfaces provide support for their respective microcontroller or processor. this facilitates the hardware design and interconnections. the intel bus interface is selected by connecting im# to logic 0 and sel to logic 1. the intel bus interconnections are shown in figure 3 . the motorola bus is selected with the im# input connected to logic 1 and sel input ties to logic 1. the motorola bus interconnections are shown in figure 4 . the special pc mode is selected when im# and sel are connected to logic 0. the pc mode interconnections are shown in figure 5 . t f igure 3. ST16C650A i ntel b us i nterconnections d0 d1 d2 d3 d4 d5 d6 d7 a0 a1 a2 io r* io w * reset d0 d1 d2 d3 d4 d5 d6 d7 io r# io w # a0 a1 a2 cs2# reset vcc cs0 cs1 as# io r io w int int rclk baudout# pcmode# im # vcc gnd cs# op2# op1# dsr# cts# rts# dtr# rx tx ri# cd#
? ? ? ? ST16C650A rev. 5.0.0 2.90v to 5.5v uart with 32-byte fifo 9 . . f igure 4. ST16C650A m otorola b us i nterconnections . f igure 5. ST16C650A pc m ode i nterconnections d0 d1 d2 d3 d4 d5 d6 d7 a0 a1 a2 cs# r/w # reset# d0 d1 d2 d3 d4 d5 d6 d7 io r# io w # a0 a1 a2 cs2# reset# vcc cs0 cs1 as# io r io w int# int# rclk baudout# pcmode# im # vcc gnd op2# op1# dsr# cts# rts# dtr# rx tx ri# cd# vcc d0 d1 d2 d3 d4 d5 d6 d7 a0 a1 a2 a3 a4 a5 a6 a7 a14 a15 aen# io w # io r# reset d0 d1 d2 d3 d4 d5 d6 d7 io w # a0 a1 a2 reset vcc cs0 cs1 as# io r io w irq n irq a pcmode# im # vcc gnd io r# irq b irq c irq 4 irq 3 a3 a4 a5 a6 a7 a8 a9 aen* op1# ri# cd# dsr# cts# rx tx rts# dtr# s1 s2 s3 vcc gnd gnd
ST16C650A ? ? ? ? 2.90v to 5.5v uart with 32-byte fifo rev. 5.0.0 10 2.1.1 pc mode the pc mode interface includes an on-chip address decoder and interrupt selection function for the standard pc com 1-4 port addresses. the selection is made through three input signals: s1, s2 and s3. the selection summary is shown in ta b l e 1 . although the on-chip address decoder was designed for pc applications ranging from 0x278 to 0x3ff, it can fit into an embedded applications by offsetting the address lines to the 650a. an example is shown in figure 6 where the uart is operating from 0x80f8 to 0x80ff address space. operating in the pc mode eliminates external address decode components. t able 1: pc m ode i nterface o n - chip a ddress d ecoder and i nterrupt s election . sel input s3, s2, s1 i nputs a9-a3 a ddress l ines to o n - chip d ecoder com/lpt p ort s election irq o utput s election 0 0 0 0 0x3f8 - 0x3ff com-1 irqb (for pcs irq4) 0 0 0 1 0x2f8 - 0x2ff com-2 irqc (for pcs irq3) 0 0 1 0 0x3e8 - 0x3ef com-3 irqb (for pcs irq4) 0 0 0 0 0x3f8 - 0x3ff com-4 irqb (for pcs irq4) 0 1 0 0 0x2f8 - 0x2ff com-1 irqa (for pcs irqn 0 1 0 1 0x3e8 - 0x3ef com-2 irqa (for pcs irqn) 0 1 1 0 0x2e8 - 0x2ef com-3 irqa (for pcs irqn) 0 1 1 1 0x3f8 - 0x3ff com-4 irqa (for pcs irqn) 0 - - - 0x278 - 0x27f lpt-2 n/a 0 - - - 0x378 - 0x37f lpt-1 n/a f igure 6. pc m ode i nterface in an e mbedded a pplication . d0 d1 d2 d3 d4 d5 d6 d7 a0 a1 a2 a3 a4 a5 a6 a7 a14 a15 aen# io w # io r# reset d0 d1 d2 d3 d4 d5 d6 d7 io w # a0 a1 a2 reset vcc int irq a sel vcc gnd io r# irq b irq c a3 a4 a5 a6 a7 a8 a9 aen* op1# ri# cd# dsr# cts# rx tx rts# dtr# s1 s2 s3 vcc gnd gnd embedded application set to operate at address 0x80f8 to 0x80ff
? ? ? ? ST16C650A rev. 5.0.0 2.90v to 5.5v uart with 32-byte fifo 11 2.2 5-volt tolerant inputs the 650a can acccept up to 5v inputs even when operating at 3.3v or 2.5v. but note that if the 650a is operating at 2.5v, its v oh may not be high enough to meet the requirements of the v ih of a cpu or a serial transceiver that is operating at 5v. caution: xtal1 is not 5 volt tolerant. 2.3 device reset the reset input resets the internal registers and the serial interface outputs to their default state (see figure 13 ). an active high pulse of longer than 40 ns duration will be required to activate the reset function in the device. 2.4 device identification and revision the ST16C650A provides a device identification code and a device revision code to distinguish the part from other devices and revisions. to read the identification code from the part, it is required to set the baud rate generator registers dll and dlm both to 0x00. now reading the content of the dlm will provide 0x04 for the ST16C650A and reading the content of dll will provide the revision of the part; for example, a reading of 0x01 means revision a. 2.5 dma mode the device does not support direct memory access. the dma mode (a legacy term) in this document does not mean direct memory access but refers to data block transfer operation. the dma mode affects the state of the rxrdy# and txrdy# output pins. the transmit and receive fifo trigger levels provide additional flexibility to the user for block mode operation. the lsr bits 5-6 provide an indication when the transmitter is empty or has an empty location(s) for more data. the user can optionally operate the transmit and receive fifo in the dma mode (fcr bit-3=1). when the transmit and receive fifo are enabled and the dma mode is disabled (fcr bit-3 = 0), the 650a is placed in single-character mode for data transmit or receive operation. when dma mode is enabled (fcr bit-3 = 1), the user takes advantage of block mode operation by loading or unloading the fifo in a block sequence determined by the programmed trigger level. in this mode, the 650a sets the txrdy# pin when the transmit fifo becomes full, and sets the rxrdy# pin when the receive fifo becomes empty. the following table shows their behavior. also see figures 24 through 29 . t able 2: txrdy# and rxrdy# o utputs in fifo and dma m ode p ins fcr bit -0=0 (fifo d isabled ) fcr b it -0=1 (fifo e nabled ) fcr b it -3 = 0 (dma m ode d isabled ) fcr b it -3 = 1 (dma m ode e nabled ) rxrdy# 0 = 1 byte. 1 = no data. 0 = at least 1 byte in fifo 1 = fifo empty. 1 to 0 transition when fifo reaches the trigger level, or timeout occurs. 0 to 1 transition when fifo empties. txrdy# 0 = thr empty. 1 = byte in thr. 0 = fifo empty. 1 = at least 1 byte in fifo. 0 = fifo has at least 1 empty location. 1 = fifo is full.
ST16C650A ? ? ? ? 2.90v to 5.5v uart with 32-byte fifo rev. 5.0.0 12 2.6 interrupt the output function of interrupt, int, output changes according to the operating bus type and various factors. ta b l e 3 summarizes its behavior in intel and pc mode of operation. multiple interrupts can be wire-ored. this is accomplished by setting mcr bit-5 to a logic 1 and connecting a 1k w to 10k w resistor between this pin and ground to provide an acceptable logic 0 level. t able 3: i nterrupt o utput (int and irqa) f unctions sel i nput s3 i nput mcr bit -5 (int type select ) mcr bit -3 (irq n enable ) i nterrupt o utput (int or irqa) intel bus mode 1 dont care 0 dont care int is logic 0 for inactive interrupt. int is logic 1 for active interrupt (active high) 1 dont care 1 dont care int is three-state for inactive interrupt int is logic 1 for active interrupt (open source). requires a 1k- 10k w resistor to gnd. pc mode 0 0 dont care dont care irqa is three-state. either irqb or irqc is used, see ta b l e 1 . 0 1 dont care 0 irqa is three-state. 0101irqa is logic 0 for inactive interrupt. irqa is logic 1 for active interrupt (active high). 0111irqa is three-state for no interrupt. irqa is logic 1 for active interrupt (active high, open source).
? ? ? ? ST16C650A rev. 5.0.0 2.90v to 5.5v uart with 32-byte fifo 13 2.7 crystal oscillator or external clock the 650a includes an on-chip oscillator (xtal1 and xtal2). the crystal oscillator provides the system clock to the baud rate generators (brg) in the uart. xtal1 is the input to the oscillator or external clock buffer input with xtal2 pin being the output. caution if external clock is used: xtal1 input is not 5 volt tolerant. for programming details, see programmable baud rate generator. the on-chip oscillator is designed to use an industry standard microprocessor crystal (parallel resonant, fundamental frequency with 10-22 pf capacitance load, esr of 20-120 ohms and 100 ppm frequency tolerance) connected externally between the xtal1 and xtal2 pins (see figure 7 ). alternatively, an external clock can be connected to the xtal1 pin to clock the internal baud rate generator for standard or custom rates. typically, the oscillator connections are shown in figure 7 . for further reading on oscillator circuit please see application note dan108 on exars web site. 2.8 programmable baud rate generator the uart has its own baud rate generator (brg) with a prescaler for the transmitter. the prescaler is controlled by a software bit in the mcr register. the mcr register bit-7 sets the prescaler to divide the input crystal or external clock by 1 or 4. the clock output of the prescaler goes to the brg. the brg further divides this clock by a programmable divisor between 1 and (2 16 -1) to obtain a 16x sampling clock of the serial data rate. the sampling clock is used by the transmitter for data bit shifting and receiver for data sampling. the brg divisor (dll and dlm registers) defaults to a random value upon power up or a reset. therefore, the brg must be programmed during initialization to the operating data rate. f igure 7. t ypical oscillator connections c1 22-47 pf c2 22-47 pf y1 1.8432 mhz to 24 mhz r1 0-120 w (optional) r2 500 kw - 1 mw xtal1 xtal2
ST16C650A ? ? ? ? 2.90v to 5.5v uart with 32-byte fifo rev. 5.0.0 14 programming the baud rate generator registers dlm and dll provides the capability of selecting the operating data rate. ta b l e 4 shows the standard data rates available with a 14.7456 mhz crystal or external clock at 16x clock rate. when using a non-standard data rate crystal or external clock, the divisor value can be calculated for dll/dlm with the following equation. 2.9 transmitter the transmitter section comprises of an 8-bit transmit shift register (tsr) and 32 bytes of fifo which includes a byte-wide transmit holding register (thr). tsr shifts out every data bit with the 16x internal clock. a bit time is 16 clock periods. the transmitter sends the start-bit followed by the number of data bits, inserts the proper parity-bit if enabled, and adds the stop-bit(s). the status of the fifo and tsr are reported in the line status register (lsr bit-5 and bit-6). f igure 8. b aud r ate g enerator divisor (decimal) = (xtal1 clock frequency / prescaler) / (serial data rate x 16) t able 4: t ypical data rates with a 14.7456 mh z crystal or external clock o utput data rate mcr bit-7=1 o utput data rate mcr bit-7=0 d ivisor for 16x clock (decimal) d ivisor for 16x clock (hex) dlm p rogram v alue (hex) dll p rogram v alue (hex) d ata r ate e rror (%) 100 400 2304 900 09 00 0 600 2400 384 180 01 80 0 1200 4800 192 c0 00 c0 0 2400 9600 96 60 00 60 0 4800 19.2k 48 30 00 30 0 9600 38.4k 24 18 00 18 0 19.2k 76.8k 12 0c 00 0c 0 38.4k 153.6k 6 06 00 06 0 57.6k 230.4k 4 04 00 04 0 115.2k 460.8k 2 02 00 02 0 230.4k 921.6k 1 01 00 01 0 xtal1 xtal2 crystal osc/ buffer mcr bit-7=0 (default) mcr bit-7=1 dll and dlm registers prescaler divide by 1 prescaler divide by 4 16x sam pling rate clock to transmitter baud rate generator logic
? ? ? ? ST16C650A rev. 5.0.0 2.90v to 5.5v uart with 32-byte fifo 15 2.9.1 transmit holding register (thr) - write only the transmit holding register is an 8-bit register providing a data interface to the host processor. the host writes transmit data byte to the thr to be converted into a serial data stream including a start bit, data bits, parity bit and stop bit(s). the least-significant-bit (bit-0) is the first data bit to go out. the thr is the input register to the transmit fifo of 32 bytes when fifo operation is enabled by fcr bit-0. every time a write operation is made to the thr, the fifo data pointer is automatically bumped to the next sequential data location. 2.9.2 transmitter operation in non-fifo mode the host loads transmit data to thr one character at a time. the thr empty flag (lsr bit-5) is set when the data byte is transferred to tsr. thr flag can generate a transmit empty interrupt (isr bit-1) when it is enabled by ier bit-1. the tsr flag (lsr bit-6) is set when tsr becomes completely empty. 2.9.3 transmitter operation in fifo mode the host may fill the transmit fifo with up to 32 bytes of transmit data. the thr empty flag (lsr bit-5) is set whenever the fifo is empty. the thr empty flag can generate a transmit empty interrupt (isr bit-1) when the amount of data in the fifo falls below its programmed trigger level. the transmit empty interrupt is enabled by ier bit-1. the tsr flag (lsr bit-6) is set when tsr/fifo becomes empty. f igure 9. t ransmitter o peration in non -fifo m ode f igure 10. t ransmitter o peration in fifo and f low c ontrol m ode transmit holding register (thr) transmit shift register (tsr) data byte l s b m s b thr interrupt (isr bit-1) enabled by ier bit-1 txnofifo1 16x clock transmit data shift register (tsr) transmit data byte thr interrupt (isr bit-1) falls below the programmed trigger level and then when becomes empty. fifo is enabled by fcr bit-0=1 transmit fifo 16x clock auto cts flow control (cts# pin) auto software flow control flow control characters (xoff1/2 and xon1/2 reg. txfifo1
ST16C650A ? ? ? ? 2.90v to 5.5v uart with 32-byte fifo rev. 5.0.0 16 2.10 receiver the receiver section contains an 8-bit receive shift register (rsr) and 32 bytes of fifo which includes a byte-wide receive holding register (rhr). the rsr uses the 16x clock for timing. it verifies and validates every bit on the incoming character in the middle of each data bit. on the falling edge of a start or false start bit, an internal receiver counter starts counting at the 16x clock rate. after 8 clocks the start bit period should be at the center of the start bit. at this time the start bit is sampled and if it is still a logic 0 it is validated. evaluating the start bit in this manner prevents the receiver from assembling a false character. the rest of the data bits and stop bits are sampled and validated in this same manner to prevent false framing. if there were any error(s), they are reported in the lsr register bits 2-4. upon unloading the receive data byte from rhr, the receive fifo pointer is bumped and the error tags are immediately updated to reflect the status of the data byte in the rhr register. rhr can generate a receive data ready interrupt upon receiving a character or delay until it reaches the fifo trigger level (xfr bit-3). furthermore, data delivery to the host is guaranteed by a receive data ready time-out interrupt when data is not received for 4 word lengths as defined by lcr[1:0] plus 12 bits time. this is equivalent to 3.7-4.6 character times. the rhr interrupt is enabled by ier bit-0. 2.10.1 receive holding register (rhr) - read-only the receive holding register is an 8-bit register that holds a receive data byte from the receive shift register. it provides the receive data interface to the host processor. the rhr register is part of the receive fifo of 32 bytes by 11-bits wide, the 3 extra bits are for the 3 error tags to be reported in lsr register. when the fifo is enabled by fcr bit-0, the rhr contains the first data character received by the fifo. after the rhr is read, the next character byte is loaded into the rhr and the errors associated with the current data byte are immediately updated in the lsr bits 2-4. f igure 11. r eceiver o peration in non -fifo m ode receive data shift register (rsr) receive data byte and errors rhr interrupt (isr bit-2) receive data holding register (rhr) rxfifo1 16x clock receive data characters data bit validation error tags in lsr bits 4:2
? ? ? ? ST16C650A rev. 5.0.0 2.90v to 5.5v uart with 32-byte fifo 17 2.11 automatic rts (hardware) flow control automatic rts hardware flow control is used to prevent data overrun to the local receiver fifo. the rts# output is used to request remote unit to suspend/resume data transmission. the auto rts flow control features is enabled to fit specific application requirement (see figure 13 ): enable auto rts flow control using efr bit-6. the auto rts function must be started by asserting rts output pin (mcr bit-1 to logic 1 after it is enabled). with the auto rts function enabled, the rts# output pin will not be de-asserted (logic 1) when the receive fifo reaches the programmed trigger level, but will be de-asserted when the fifo reaches the next trigger level ( see table 10 ). the rts# output pin will be asserted again after the fifo is unloaded to the next trigger level below the programmed trigger level. however, even under these conditions, the 650a will continue to accept data until the receive fifo is full if the remote uart transmitter continues to send data. enable rts interrupt through ier bit-6 (after setting efr bit-4). the uart issues an interrupt when the rts# pin is de-asserted (logic 1) during auto rts flow control mode: isr bit-5 will be set to logic 1. 2.12 auto cts flow control automatic cts flow control is used to prevent data overrun to the remote receiver fifo. the cts# input is monitored to suspend/restart the local transmitter. the auto cts flow control feature is selected to fit specific application requirement (see figure 13 ): enable auto cts flow control using efr bit-7. with the auto cts function enabled, the uart will suspend transmission as soon as the stop bit of the character in the transmit shift register has been shifted out. transmission is resumed after the cts# input is re-asserted (logic 0), indicating more data may be sent. enable cts interrupt through ier bit-7 (after setting efr bit-4). the uart issues an interrupt when the cts# pin is de-asserted (logic 1) during auto cts flow control mode: isr bit-5 will be set to 1. f igure 12. r eceiver o peration in fifo and a uto rts f low c ontrol m ode receive data shift register (rsr) rxfifo1 16x clock error tags (32-sets) error tags in lsr bits 4:2 32 bytes by 11-bit wide fifo receive data characters fifo trigger=16 example : - rx fifo trigger level selected at 16 bytes data fills to 24 data falls to 8 data bit validation receive data fifo receive data receive data byte and errors rhr interrupt (isr bit-2) programmed for desired fifo trigger level. fifo is enabled by fcr bit-0=1 rts# de-asserts when data fills above the flow control trigger level to suspend remote transmitter. enable by efr bit-6=1, mcr bit-1. rts# re-asserts when data falls below the flow control trigger level to restart remote transmitter. enable by efr bit-6=1, mcr bit-1.
ST16C650A ? ? ? ? 2.90v to 5.5v uart with 32-byte fifo rev. 5.0.0 18 2.13 auto xon/xoff (software) flow control when software flow control is enabled ( see table 12 ), the 650a compares one or two sequential receive data characters with the programmed xon or xoff-1,2 character value(s). if received character(s) (rx) match the programmed values, the 650a will halt transmission (tx) as soon as the current character has completed transmission. when a match occurs, the xoff (if enabled via ier bit-5) flag will be set and the interrupt output pin will be activated. following a suspension due to a match of the xoff character values, the 650a will monitor the receive data stream for a match to the xon-1,2 character value(s). if a match is found, the 650a will resume operation and clear the flags (isr bit-4). reset initially sets the contents of the xon/xoff 8-bit flow control registers to a logic 0. following reset the user can write any xon/xoff value desired for software flow control. different conditions can be set to detect xon/ xoff characters ( see table 12 ) and suspend/resume transmissions. when double 8-bit xon/xoff characters are selected, the 650a compares two consecutive receive characters with two software flow control 8-bit values (xon1, xon2, xoff1, xoff2) and controls tx transmissions accordingly. under the above described flow control mechanisms, flow control characters are not placed (stacked) in the user accessible rx data buffer or fifo. f igure 13. a uto rts and cts f low c ontrol o peration the local uart (uarta) starts data transfer by asserting rtsa# (1). rtsa# is normally connected to ctsb# (2) of remote uart (uartb). ctsb# allows its transmitter to send data (3). txb data arrives and fills uarta receive fifo (4). when rxa data fills up to its receive fifo trigger level, uarta activates its rxa data ready interrupt (5) and con- tinues to receive and put data into its fifo. if interrupt service latency is long and data is not being unloaded, uarta monitors its receive data fill level to match the upper threshold of rts delay and de-assert rtsa# (6). ctsb# follows (7) and request uartb transmitter to suspend data transfer. uartb stops or finishes sending the data bits in its trans- mit shift register (8). when receive fifo data in uarta is unloaded to match the lower threshold of rts delay (9), uarta re-asserts rtsa# (10), ctsb# recognizes the change (11) and restarts its transmitter and data flow again until next receive fifo trigger (12). this same event applies to the reverse direction when uarta sends data to uartb with rtsb# and ctsa# controlling the data flow. rtsa# ctsb# rxa txb transmitter receiver fifo trigger reached auto rts trigger level auto cts monitor rtsa# txb rxa fifo ctsb# remote uart uartb local uart uarta on off on suspend restart rts high threshold data starts on off on assert rts# to begin transmission 1 2 3 4 5 6 7 receive data rts low threshold 9 10 11 receiver fifo trigger reached auto rts trigger level transmitter auto cts monitor rtsb# ctsa# rxb txa inta (rxa fifo interrupt) rx fifo trigger level rx fifo trigger level 8 12 rtscts1
? ? ? ? ST16C650A rev. 5.0.0 2.90v to 5.5v uart with 32-byte fifo 19 in the event that the receive buffer is overfilling and flow control needs to be executed, the 650a automatically sends an xoff message (when enabled) via the serial tx output to the remote modem. the 650a sends the xoff-1,2 characters two-character-times (= time taken to send two characters at the programmed baud rate) after the receive fifo crosses the programmed trigger level. to clear this condition, the 650a will transmit the programmed xon-1,2 characters as soon as receive fifo drops to one trigger level below the programmed trigger level. ta b l e 5 below explains this: * after the trigger level is reached, an xoff character is sent after a short span of time (= time required to send 2 characters); for example, after 2.083ms has elapsed for 9600 baud and 10-bit word length setting. 2.14 special character detect a special character detect feature is provided to detect an 8-bit character when bit-5 is set in the enhanced feature register (efr). when this character (xoff2) is detected, it will be placed in the fifo along with normal incoming rx data. the 650a compares each incoming receive character with xoff-2 data. if a match exists, the received data will be transferred to the rx fifo and isr bit-4 will be set to indicate detection of a special character. although the internal register table shows each x-register with eight bits of character information, the actual number of bits is dependent on the programmed word length. line control register (lcr) bits 0-1 defines the number of character bits, i.e., either 5 bits, 6 bits, 7 bits, or 8 bits. the word length selected by lcr bits 0-1 also determines the number of bits that will be used for the special character comparison. bit-0 in the x- registers corresponds with the lsb bit for the receive character. 2.15 auto rs485 half-duplex control the auto rs485 half-duplex direction control changes the behavior of the transmitter when enabled by xfr bit-3. by default, it asserts rts# (logic 0) output following the last stop bit of the last character that has been transmitted. this helps in turning around the transceiver to receive the remote stations response. when the host is ready to transmit next polling data packet again, it only has to load data bytes to the transmit fifo. the transmitter automatically re-asserts rts# (logic 1) output prior to sending the data. the rs485 half-duplex direction control output polarity can be inverted by enabling xfr bit-5. t able 5: a uto x on /x off (s oftware ) f low c ontrol rx t rigger l evel int p in a ctivation x off c haracter ( s ) s ent ( characters in rx fifo ) x on c haracter ( s ) s ent ( characters in rx fifo ) 88 8* 0 16 16 16* 8 24 24 24* 16 28 28 28* 24 t able 6: rs485 h alf -d uplex c ontrol xfr b it -2 xfr b it -5 rts# p in 0 x rs485 half-duplex control disabled 1 0 logic 1 = tx logic 0 = rx 1 1 logic 1 = rx logic 0 = tx
ST16C650A ? ? ? ? 2.90v to 5.5v uart with 32-byte fifo rev. 5.0.0 20 2.16 infrared mode the 650a uart includes the infrared encoder and decoder compatible to the irda (infrared data association) version 1.0. the infrared mode can be enabled by setting mcr bit-6 to a 1. in the infrared mode, the user can choose to send/receive data either half-duplex or full-duplex. the half-duplex mode is chosen by setting bit-0 of xfr register to a 1. this prevents echoed data from reaching the receiver. when the infrared feature is enabled, the transmit data outputs, tx, idles at logic zero level. likewise, the rx input assumes an idle level of logic zero, see figure 14 . the irda standard defines the infrared encoder sends out a 3/16 of a bit wide high-pulse for each 0 bit in the transmit data stream. this signal encoding reduces the on-time of the infrared led, hence reduces the power consumption. see figure 14 below. the 650a has an additional feature to allow user to vary the transmit pulse width further reducing power consumption of the system where application permits (see irpw register for details). the wireless infrared decoder receives the input pulse from the infrared sensing diode on rx pin. each time it senses a light pulse, it returns a logic 0 to the data bit stream. the 650a also includes another feature - inversion of the ir pulse (xfr register bit-1), where a low ir pulse in the receive data stream is recognized as a 0 bit. f igure 14. i nfrared t ransmit d ata e ncoding and r eceive d ata d ecoding character data bits start stop 0000 0 11 111 bit time 1/16 clock delay irdecoder-1 rx data receive ir pulse (rx pin) character data bits start stop 0000 0 11 111 tx data transmit ir pulse (tx pin) bit time 1/2 bit time 3/16 bit time irencoder-1
? ? ? ? ST16C650A rev. 5.0.0 2.90v to 5.5v uart with 32-byte fifo 21 2.17 sleep mode & wake-up indicator the 650a is designed to operate with low power consumption. a special sleep mode is included to further reduce power consumption when the chip is not being used. all of these conditions must be satisfied for the 650a to enter sleep mode: n no interrupts pending 650a (isr bit-0 = 1) n sleep mode is enabled (ier bit-4 = 1) n modem inputs are not toggling (msr bits 0-3 = 0) n rx input pin are idling at a logic 1 the 650a stops its crystal oscillator to conserve power in the sleep mode. user can check the xtal2 pin for no clock output as an indication that the device has entered the sleep mode. the 650a resumes normal operation by any of the following: n a receive data start bit transition (logic 1 to 0) n a data byte is loaded to the transmitter, thr or fifo n a change of logic state on any of the modem or general purpose serial inputs: cts#, dsr#, cd#, ri# if the sleep mode is enabled and the 650a is awakened by one of the conditions described above, an interrupt is issued by the 650a to signal to the cpu that it is awake. the lower nibble of the interrupt source register (isr) will read a value of 0x1 for this interrupt and reading the isr clears this interrupt. since the same value (0x1) is also used to indicate no pending interrupt, users should exercise caution while using the sleep mode. once awakened, the 650a will return to the sleep mode automatically after any other interrupting condition (the true cause of waking up the 650a) has been serviced. if the 650a is awakened by the modem inputs, a read to the msr is required to reset the modem inputs. in any case, the sleep mode will not be entered while an interrupt is pending. the 650a will stay in the sleep mode of operation until it is disabled by setting ier bit-4 to a logic 0. a word of caution: owing to the starting up delay of the crystal oscillator after waking up from sleep mode, the first few receive characters may be lost. the number of characters lost during the restart also depends on your operating data rate. more characters are lost when operating at higher data rate. also, it is important to keep rx input idling at logic 1 or marking condition during sleep mode to avoid receiving a break condition upon the restart. this may occur when the external interface transceivers (rs-232, rs-485 or another type) are also put to sleep mode and cannot maintain the marking condition. to avoid this, the designer can use a 47k-100k ohm pull-up resistor on the rx pin. 2.17.1 sleep mode in ir mode if operating in the infrared mode, the 650a will not wake up via the conditions described above. to exit out of sleep mode, sleep mode must be disabled (ier bit-4 = 0).
ST16C650A ? ? ? ? 2.90v to 5.5v uart with 32-byte fifo rev. 5.0.0 22 2.18 internal loopback the 650a uart provides an internal loopback capability for system diagnostic purposes. the internal loopback mode is enabled by setting mcr register bit-4 to logic 1. all regular uart functions operate normally. figure 15 shows how the modem port signals are re-configured. transmit data from the transmit shift register output is internally routed to the receive shift register input allowing the system to receive the same data that it was sending. the tx pin is held at logic 1 or mark condition while rts# and dtr# are de-asserted, and cts#, dsr# cd# and ri# inputs are ignored. caution: the rx input must be held to a logic 1 during loopback test else upon exiting the loopback test the uart may detect and report a false break signal. also, auto rts/cts is not supported during internal loopback. f igure 15. i nternal l oop b ack tx rx modem / general purpose control logic internal data bus lines and control signals rts# mcr bit-4=1 vcc vcc transmit shift register (thr/fifo) receive shift register (rhr/fifo) cts# dtr# dsr# ri# cd# op1# op2# rts# cts# dtr# dsr# ri# cd# vcc vcc op2# vcc op1#
? ? ? ? ST16C650A rev. 5.0.0 2.90v to 5.5v uart with 32-byte fifo 23 3.0 uart configuration registers the 650a has a set of configuration registers selected by address lines a0 to a2. the based page registers are 16c550 compatible with exar enhanced feature registers located on the second page (mirror) addresses. the second page registers are only accessible by setting lcr register to a value of 0xbf. the register set is shown on ta b l e 7 and ta b l e 8 . . t able 7: ST16C650A uart configuration registers a ddress r egister r ead /w rite c omments a2 a1 a0 16550 c ompatible r egisters 0 0 0 rhr - receive holding register thr - transmit holding register read-only write-only lcr[7] = 0 0 0 0 dll - divisor latch low read/write lcr[7] = 1, lcr 1 0xbf 0 0 1 dlm - divisor latch high read/write lcr[7] = 1, lcr 1 0xbf 0 0 0 drev - device revision code read-only lcr[7] = 1, lcr 1 0xbf, dll, dlm = 0x00 0 0 1 dvid - device identification code read-only lcr[7] = 1, lcr 1 0xbf, dll, dlm = 0x00 0 0 1 ier - interrupt enable register read/write lcr[7] = 0 0 1 0 isr - interrupt status register fcr - fifo control register read-only write-only lcr[7] = 0 0 1 1 lcr - line control register read/write 1 0 0 mcr - modem control register read/write lcr[7] = 0 1 0 1 lsr - line status register read-only lcr[7] = 0 xfr - extra feature register write-only lcr[7] = 0, efr[4] = 1 1 1 0 msr - modem status register read-only lcr[7] = 0 irpw - infrared pulse width register write-only lcr[7] = 0, efr[4] = 1 1 1 1 spr - scratch pad register read/write lcr[7] = 0 e nhanced r egisters 0 1 0 efr - enhanced function register read/write lcr = 0xbf 1 0 0 xon-1 - xon character 1 read/write lcr = 0xbf 1 0 1 xon-2 - xon character 2 read/write lcr = 0xbf 1 1 0 xoff-1 - xoff character 1 read/write lcr = 0xbf 1 1 1 xoff-2 - xoff character 2 read/write lcr = 0xbf
ST16C650A ? ? ? ? 2.90v to 5.5v uart with 32-byte fifo rev. 5.0.0 24 t able 8: uart configuration registers description. s haded bits are enabled when efr b it -4=1. a ddress a2-a0 r eg n ame r ead / w rite b it -7 b it -6 b it -5 b it -4 b it -3 b it -2 b it -1 b it -0 c omment 16c550 compatible registers 0 0 0 rhr rd bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 lcr[7] = 0 0 0 0 thr wr bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 0 0 1 ier rd/wr 0/ 0/ 0/ 0/ modem stat. int. enable rx line stat. int. enable tx empty int enable rx data int. enable cts int. enable rts int. enable xoff int. enable sleep mode enable 0 1 0 isr rd fifos enabled fifos enabled 0/ 0/ int source bit-3 int source bit-2 int source bit-1 int source bit-0 int source bit-5 int source bit-4 0 1 0 fcr wr rx fifo trigger rx fifo trigger 0/ 0/ dma mode enable tx fifo reset rx fifo reset fifos enable tx fifo trigger tx fifo trigger 0 1 1 lcr rd/wr divisor enable set tx break set par- ity even parity parity enable stop bits word length bit-1 word length bit-0 1 0 0 mcr rd/wr 0/ 0/ 0/ internal loop- back enable op2#/ irqn output enable op1# rts# output control dtr# output control lcr[7]=0 brg pres- caler ir mode enable int type select 1 0 1 lsr rd rx fifo error tsr empty thr empty rx break rx fram- ing error rx parity error rx data over- run error rx data ready xfr wr rsrvd rsrvd invert rs485 control output enable xonany lsr int mode auto rs485 enable invert ir rx input enable half- duplex ir 1 1 0 msr rd cd ri dsr cts delta cd# delta ri# delta dsr# delta cts# irpw wr bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 1 1 1 spr rd/wr bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0
? ? ? ? ST16C650A rev. 5.0.0 2.90v to 5.5v uart with 32-byte fifo 25 4.0 internal register descriptions 4.1 receive holding register (rhr) - read-only see receiver on page 16. 4.2 transmit holding register (thr) - write-only see transmitter on page 14. 4.3 interrupt enable register (ier) - read/write the interrupt enable register (ier) masks the interrupts from receive data ready, transmit empty, line status and modem status registers. these interrupts are reported in the interrupt status register (isr) register. 4.3.1 ier versus receive fifo interrupt mode operation when the receive fifo (fcr bit-0 = a logic 1) and receive interrupts (ier bit-0 = logic 1) are enabled, the rhr interrupts (see isr bits 2 and 3) status will reflect the following: a. the receive data available interrupts are issued to the host when the fifo has reached the programmed trigger level. it will be cleared when the fifo drops below the programmed trigger level. b. fifo level will be reflected in the isr register when the fifo trigger level is reached. both the isr register status bit and the interrupt will be cleared when the fifo drops below the trigger level. c. the receive data ready bit (lsr bit-0) is set as soon as a character is transferred from the shift register to the receive fifo. it is reset when the fifo is empty. baud rate generator divisor 0 0 0 dll rd/wr bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 lcr[7]=1 lcr 1 0xbf 0 0 1 dlm rd/wr bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 0 0 0 drev rd bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 lcr[7] = 1 lcr 1 0xbf dll=0x00 dlm=0x00 0 0 1dvidrd0 0 0 0 0100 enhanced registers 0 1 0 efr r/w auto cts enable auto rts enable special char select enable ier [7:4], isr [5:4], fcr[5:4], mcr[7:5] msr[7:4] irpw[7:0] xfr[7:0] soft- ware flow cntl bit-3 soft- ware flow cntl bit-2 soft- ware flow cntl bit-1 soft- ware flow cntl bit-0 lcr=0xbf 1 0 0 xon1 r/w bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 1 0 1 xon2 r/w bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 1 1 0 xoff1 r/w bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 1 1 1 xoff2 r/w bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 t able 8: uart configuration registers description. s haded bits are enabled when efr b it -4=1. a ddress a2-a0 r eg n ame r ead / w rite b it -7 b it -6 b it -5 b it -4 b it -3 b it -2 b it -1 b it -0 c omment
ST16C650A ? ? ? ? 2.90v to 5.5v uart with 32-byte fifo rev. 5.0.0 26 4.3.2 ier versus receive/transmit fifo polled mode operation when fcr bit-0 equals a logic 1 for fifo enable; resetting ier bits 0-3 enables the ST16C650A in the fifo polled mode of operation. since the receiver and transmitter have separate bits in the lsr either or both can be used in the polled mode by selecting respective transmit or receive control bit(s). a. lsr bit-0 indicates there is data in rhr or rx fifo. b. lsr bit-1 indicates an overrun error has occurred and that data in the fifo may not be valid. c. lsr bits 2-4 provides the type of receive data errors encountered for the data byte in rhr, if any. d. lsr bit-5 indicates thr is empty. e. lsr bit-6 indicates when both the transmit fifo and tsr are empty. f. lsr bit-7 indicates a data error in at least one character in the rx fifo. ier[0]: rhr interrupt enable the receive data ready interrupt will be issued when rhr has a data character in the non-fifo mode or when the receive fifo has reached the programmed trigger level in the fifo mode. logic 0 = disable the receive data ready interrupt (default). logic 1 = enable the receiver data ready interrupt. ier[1]: thr interrupt enable this bit enables the transmit ready interrupt which is issued whenever the thr becomes empty in the non- fifo mode or when data in the fifo falls below the programmed trigger level in the fifo mode. if the thr is empty when this bit is enabled, an interrupt will be generated. logic 0 = disable transmit holding register empty interrupt (default). logic 1 = enable transmit holding register empty interrupt. ier[2]: receive line status interrupt enable any change of state of the lsr register bits 1, 2, 3 or 4 will generate an interrupt to inform the host controller about the error status of the current data byte in fifo. lsr bit-1 generates an interrupt immediately when the character has been received. lsr bits 2-4 generate an interrupt either when the character with errors is next to be read out of the fifo (xfr[3] = 0) or when the received chracter is received (xfr[3] = 1). logic 0 = disable the receiver line status interrupt (default). logic 1 = enable the receiver line status interrupt. ier[3]: modem status interrupt enable logic 0 = disable the modem status register interrupt (default). logic 1 = enable the modem status register interrupt. ier[4]: sleep mode enable (requires efr bit-4 = 1) logic 0 = disable sleep mode (default). logic 1 = enable sleep mode. see sleep mode & wake-up indicator on page 21. ier[5]: xoff interrupt enable (requires efr bit-4=1) logic 0 = disable the software flow control, receive xoff interrupt (default). logic 1 = enable the software flow control, receive xoff interrupt. see auto xon/xoff (software) flow control on page 18. ier[6]: rts# output interrupt enable (requires efr bit-4=1) logic 0 = disable the rts# interrupt (default). logic 1 = enable the rts# interrupt. the uart issues an interrupt when the rts# pin makes a transition from low to high.
? ? ? ? ST16C650A rev. 5.0.0 2.90v to 5.5v uart with 32-byte fifo 27 ier[7]: cts# input interrupt enable (requires efr bit-4=1) logic 0 = disable the cts# interrupt (default). logic 1 = enable the cts# interrupt. the uart issues an interrupt when cts# pin makes a transition from low to high. 4.4 interrupt status register (isr) - read-only the uart provides multiple levels of prioritized interrupts to minimize external software interaction. the interrupt status register (isr) provides the user with six interrupt status bits. performing a read cycle on the isr will give the user the current highest pending interrupt level to be serviced, others queue up for next service. no other interrupts are acknowledged until the pending interrupt is serviced. the interrupt source table, ta b l e 9 , shows the data values (bit 0-5) for the six prioritized interrupt levels and the interrupt sources associated with each of these interrupt levels. 4.4.1 interrupt generation: lsr is by any of the lsr bits 1, 2, 3 and 4. rxrdy is by rx trigger level. rxrdy time-out is by a 4-char plus 12 bits delay timer. txrdy is by tx trigger level and tx fifo empty (or transmitter empty in auto rs485 control). msr is by any of the msr bits, 0, 1, 2 and 3. receive xoff/special character is by detection of an xoff or special character. cts# is when its transmitter toggles the input pin (from low to high) during auto cts flow control. rts# is when its receiver toggles the output pin (from low to high) during auto rts flow control. wake-up indicator: when the uart comes out of sleep mode. 4.4.2 interrupt clearing: lsr interrupt is cleared by a read to the lsr register. rxrdy is cleared by reading data until fifo falls below the trigger level. rxrdy time-out interrupt is cleared by reading rhr. txrdy interrupt is cleared by a read to the isr register or writing to thr. msr interrupt is cleared by a read to the msr register. xoff interrupt is cleared by a read to isr or when xon character(s) is received. special character interrupt is cleared by a read to isr or after the next character is received. rts# and cts# status change interrupts are cleared by a read to the msr register. wake-up indicator is cleared by a read to the isr register.
ST16C650A ? ? ? ? 2.90v to 5.5v uart with 32-byte fifo rev. 5.0.0 28 ] isr[0]: interrupt status logic 0 = an interrupt is pending and the isr contents may be used as a pointer to the appropriate interrupt service routine. logic 1 = no interrupt pending (default condition) or the device has come out of sleep mode. isr[3:1]: interrupt status these bits indicate the source for a pending interrupt at interrupt priority levels 1, 2, 3 and 4 (see interrupt source ta b l e 9 ). isr[5:4]: interrupt status these bits are enabled when efr bit-4 is set to a logic 1. isr bit-4 indicates that the receiver detected a data match of the xoff character(s). note that once set to a logic 1, the isr bit-4 will stay a logic 1 until a xon character is received. isr bit-5 indicates that cts# or rts# has changed state. isr[7:6]: fifo enable status these bits are set to a logic 0 when the fifos are disabled. they are set to a logic 1 when the fifos are enabled. 4.5 fifo control register (fcr) - write-only this register is used to enable the fifos, clear the fifos, set the transmit/receive fifo trigger levels, and select the dma mode. the dma, and fifo modes are defined as follows: fcr[0]: tx and rx fifo enable logic 0 = disable the transmit and receive fifo (default). logic 1 = enable the transmit and receive fifos. this bit must be set to logic 1 when other fcr bits are written or they will not be programmed. fcr[1]: rx fifo reset this bit is only active when fcr bit-0 is a 1. logic 0 = no receive fifo reset (default). logic 1 = reset the receive fifo pointers and fifo level counter logic (the receive shift register is not cleared or altered). this bit will return to a logic 0 after resetting the fifo. t able 9: i nterrupt s ource and p riority l evel p riority isr r egister s tatus b its s ource of interrupt l evel b it -5 b it -4 b it -3 b it -2 b it -1 b it -0 1 0 0 0 1 1 0 lsr (receiver line status register) 2 0 0 1 1 0 0 rxrdy (receive data time-out) 3 0 0 0 1 0 0 rxrdy (received data ready) 4 0 0 0 0 1 0 txrdy (transmit ready) 5 0 0 0 0 0 0 msr (modem status register) 6 0 1 0 0 0 0 rxrdy (received xoff or special character) 7 1 0 0 0 0 0 cts#, rts# change of state - 0 0 0 0 0 1 none (default) or wake-up indicator
? ? ? ? ST16C650A rev. 5.0.0 2.90v to 5.5v uart with 32-byte fifo 29 fcr[2]: tx fifo reset this bit is only active when fcr bit-0 is a 1. logic 0 = no transmit fifo reset (default). logic 1 = reset the transmit fifo pointers and fifo level counter logic (the transmit shift register is not cleared or altered). this bit will return to a logic 0 after resetting the fifo. fcr[3]: dma mode select controls the behavior of the txrdy# and rxrdy# pins. see dma mode on page 11. logic 0 = dma mode disabled (default). logic 1 = dma mode enabled. fcr[5:4]: transmit fifo trigger select (logic 0 = default, tx trigger level = one) these 2 bits set the trigger level for the transmit fifo interrupt. the uart will issue a transmit interrupt when the number of characters in the fifo falls below the selected trigger level, or when it gets empty in case that the fifo did not get filled over the trigger level on last re-load. ta b l e 1 0 below shows the selections. efr bit-4 must be set to 1 before these bits can be accessed. fcr[7:6]: receive fifo trigger select (logic 0 = default, rx trigger level =1). the fctr bits 6-7 are associated with these 2 bits. these 2 bits are used to set the trigger level for the receiver fifo interrupt. ta b l e 1 0 shows the complete selections.. 4.6 line control register (lcr) - read/write the line control register is used to specify the asynchronous data communication format. the word or character length, the number of stop bits, and the parity are selected by writing the appropriate bits in this register. lcr[1:0]: tx and rx word length select these two bits specify the word length to be transmitted or received. t able 10: t ransmit and r eceive fifo t rigger l evel s election with auto rts hysteresis fcr b it -7 fcr b it -6 fcr b it -5 fcr bit -4 t ransmit int t rigger l evel r eceive int t rigger l evel a uto rts d e - assert a uto rts r e - assert c ompatibility 0 0 1 1 0 1 0 1 0 0 1 1 0 1 0 1 16 8 24 30 8 16 24 28 16 24 28 28 0 8 16 24 16c650a compati- ble. bit-1 bit-0 w ord length 0 0 5 (default) 01 6 10 7 11 8
ST16C650A ? ? ? ? 2.90v to 5.5v uart with 32-byte fifo rev. 5.0.0 30 lcr[2]: tx and rx stop-bit length select the length of the stop bit is specified by this bit in conjunction with the programmed word length. lcr[3]: tx and rx parity select parity or no parity can be selected via this bit. the parity bit is a simple way used in communications for data integrity check. see ta b l e 1 1 for parity selection summary below. logic 0 = no parity. logic 1 = a parity bit is generated during the transmission while the receiver checks for parity error of the data character received. lcr[4]: tx and rx parity select if the parity bit is enabled with lcr bit-3 set to a logic 1, lcr bit-4 selects the even or odd parity format. logic 0 = odd parity is generated by forcing an odd number of logic 1s in the transmitted character. the receiver must be programmed to check the same format (default). logic 1 = even parity is generated by forcing an even the number of logic 1s in the transmitted character. the receiver must be programmed to check the same format. lcr[5]: tx and rx parity select if the parity bit is enabled, lcr bit-5 selects the forced parity format. lcr bit-5 = logic 0, parity is not forced (default). lcr bit-5 = logic 1 and lcr bit-4 = logic 0, parity bit is forced to a logical 1 for the transmit and receive data. lcr bit-5 = logic 1 and lcr bit-4 = logic 1, parity bit is forced to a logical 0 for the transmit and receive data. lcr[6]: transmit break enable when enabled the break control bit causes a break condition to be transmitted (the tx output is forced to a space, logic 0, state). this condition remains until disabled by setting lcr bit-6 to a logic 0. logic 0 = no tx break condition (default). logic 1 = forces the transmitter output (tx) to a space, logic 0, for alerting the remote receiver of a line break condition. bit-2 w ord length s top bit length (b it time ( s )) 0 5,6,7,8 1 (default) 15 1-1/2 1 6,7,8 2 t able 11: p arity selection lcr b it -5 lcr b it -4 lcr b it -3 p arity selection x x 0 no parity 0 0 1 odd parity 01 1 even parity 1 0 1 force parity to mark, 1 1 1 1 forced parity to space, 0
? ? ? ? ST16C650A rev. 5.0.0 2.90v to 5.5v uart with 32-byte fifo 31 lcr[7]: baud rate divisors enable baud rate generator divisor (dll/dlm) enable. logic 0 = data registers are selected (default). logic 1 = divisor latch registers are selected if lcr 1 0xbf . 4.7 modem control register (mcr) or general purpose outputs control - read/write the mcr register is used for controlling the serial/modem interface signals or general purpose inputs/outputs. mcr[0]: dtr# pins the dtr# pin is a modem control output. if the modem interface is not used, this output may be used for general purpose. logic 0 = force dtr# output to a logic 1 (default). logic 1 = force dtr# output to a logic 0. mcr[1]: rts# pins the rts# pin is a modem control output and may be used for automatic hardware flow control enabled by efr bit-6. if the modem interface is not used, this output may be used for general purpose. logic 0 = force rts# output to a logic 1 (default). logic 1 = force rts# output to a logic 0. mcr[2]: op1# output op1# is a general purpose output. logic 0 = op1# output is at logic 1 (default). logic 1 = op1# output is at logic 0 mcr[3]: op2# or irqn enable during pc mode op2# is a general purpose output available during the intel or motorola bus interface mode of operation. in the pc bus mode, it enables the irqn operation. see pc mode section. during intel or motorola bus mode operation: logic 0 = op2# output is at logic 1 (default). logic 1 = op2# output is at logic 0. during pc mode operation: logic 0 = disable irqn operation (default). logic 1 = enable irqn operation. mcr[4]: internal loopback enable logic 0 = disable loopback mode (default). logic 1 = enable local loopback mode, see loopback section and figure 15 . mcr[5]: active/three-state interrupt output enable logic 0 = enable active or three-state interrupt output (default). logic 1 = enable open source interrupt output mode. see ta b l e 3 for detailed information.
ST16C650A ? ? ? ? 2.90v to 5.5v uart with 32-byte fifo rev. 5.0.0 32 mcr[6]: infrared encoder/decoder enable logic 0 is the default unless the ir mode is forced by the enir pin. this bit can overwrite the enir state after a power up or reset. logic 0 = enable the standard modem receive and transmit input/output interface (default). logic 1 = enable infrared irda receive and transmit inputs/outputs. the tx/rx output/input are routed to the infrared encoder/decoder. the data input and output levels conform to the irda infrared interface requirement. the infrared tx output is at logic 0 during idle condition. the infrared receive data input polarity is also logic 0, however, it may be inverted when using an infrared module that provides inverted signal output. use register xfr bit-1 to invert the receive input signal level going to the infrared decoder. also see xfr bit-0 for half-duplex operation where the receiver can be disabled while transmitting. mcr[7]: clock prescaler select logic 0 = divide by one. the input clock from the crystal or external clock is fed directly to the programmable baud rate generator without further modification, i.e., divide by one (default). logic 1 = divide by four. the prescaler divides the input clock from the crystal or external clock by four and feeds it to the programmable baud rate generator, hence, data rates become one forth. 4.8 line status register (lsr) - read only this register provides the status of data transfers between the uart and the host. lsr[0]: receive data ready indicator logic 0 = no data in receive holding register or rx fifo (default). logic 1 = data has been received and is saved in the receive holding register or rx fifo. lsr[1]: receiver overrun flag logic 0 = no overrun error (default). logic 1 = overrun error. a data overrun error condition occurred in the receive shift register. this happens when additional data arrives while the fifo is full. in this case the previous data in the receive shift register is overwritten. note that under this condition the data byte in the receive shift register is not transferred into the fifo, therefore the data in the fifo is not corrupted by the error. if ier bit-2 is enabled, an interrupt is generated immediately. lsr[2]: receive data parity error flag logic 0 = no parity error (default). logic 1 = parity error. the receive character in rhr does not have correct parity information and is suspect. this error is associated with the character available for reading in rhr. if ier bit-2 is enabled, an interrupt is generated when the character is available in the rhr (xfr[3] = 0) or when the character is received (xfr[3] = 1). lsr[3]: receive data framing error flag logic 0 = no framing error (default). logic 1 = framing error. the receive character did not have a valid stop bit(s). this error is associated with the character available for reading in rhr. if ier bit-2 is enabled, an interrupt is generated when the character is available in the rhr (xfr[3] = 0) or when the character is received (xfr[3] = 1). lsr[4]: receive break flag logic 0 = no break condition (default). logic 1 = the receiver received a break signal (rx was a logic 0 for at least one character frame time). in the fifo mode, only one break character is loaded into the fifo. the break indication is cleared when lsr is read, but the rx input may still be a logic 0. if ier bit-2 is enabled, an interrupt is generated when the character is available in the rhr (xfr[3] = 0) or when the character is received (xfr[3] = 1).
? ? ? ? ST16C650A rev. 5.0.0 2.90v to 5.5v uart with 32-byte fifo 33 lsr[5]: transmit holding register empty flag this bit is the transmit holding register empty indicator. the thr bit is set to a logic 1 when the last data byte is transferred from the transmit holding register to the transmit shift register. the bit is reset to logic 0 concurrently with the data loading to the transmit holding register by the host. in the fifo mode this bit is set when the transmit fifo is empty, it is cleared when the transmit fifo contains at least 1 byte. lsr[6]: transmit shift register empty flag this bit is the transmit shift register empty indicator. this bit is set to a logic 1 whenever the transmitter goes idle. it is set to logic 0 whenever either the thr or tsr contains a data character. in the fifo mode this bit is set to one whenever the transmit fifo and transmit shift register are both empty. lsr[7]: receive fifo data error flag logic 0 = no fifo error (default). logic 1 = a global indicator for the sum of all error bits in the rx fifo. at least one parity error, framing error or break indication is in the fifo data. this bit clears when there is no more error(s) in the fifo. 4.9 extra feature register (xfr) - write only this register provides additional features and controls to the ST16C650A uart. xfr [0]: half-duplex infrared mode enable when infrared mode is enabled, mcr bit-6=1, this bit selects the infrared mode to operate in normal full-duplex or half-duplex mode. this half-duplex mode feature is very desirable when the uart does not want to see its own data that may be reflected. logic 0 = disable. the receiver is active during data transmission. logic 1 = enable half-duplex operation. the infrared receiver is disabled during data transmission. xfr [1]: invert received infrared input signal this bit controls the input polarity of the infrared data. logic 0 = infrared data input idles at logic 0 (default). logic 1 = infrared data idles at logic 1, pulses low. xfr [2]: auto rs485 enable this bit enables the auto rs485 direction control feature for half-duplex operation with rs-485 transceiver. the feature should only be enabled when normal rts# output and auto rts flow control are not used. logic 0 = disable the auto rs485 direction control function. this allows normal rts# output or auto rts flow control operation. logic 1 = enable the auto rs485 direction function. the rts# output will automatically change its logic state to control the rs-485 transceiver from sending and receiving. see auto rs485 half-duplex control on page 19. xfr [3]: lsr bad data interrupt operation when the lsr interrupt is enabled, ier bit-2=1, this bit selects when the interrupt pin (int) will report received character error: parity, framing or break. use this feature only if application needs immediate knowledge when a bad character is received. logic 0 = received data error interrupt (lsr interrupt) will be generated when the bad character is available for reading from the fifo. this is compatible to industry standard 16c550 operation. logic 1 = received data error interrupt (lsr interrupt) is generated immediately upon receipt of the bad character. it will be reset when lsr is read. if user does not read the bad character out, another bad character interrupt is generated when its available for reading from the fifo.
ST16C650A ? ? ? ? 2.90v to 5.5v uart with 32-byte fifo rev. 5.0.0 34 xfr [4]: xon-any enable this bit enables and disables the xon-any function when xon/xoff software flow control is enabled. logic 0 = disable the xon-any function. logic 1 = enable the xon-any function. the receiver will use any received character as an xon character and resume data transmission. xfr [5]: invert auto rs-485 control output when auto rs485 feature is enabled, xfr[2]=1, rts# output automatically changes its logic state to control the rs-485 transceiver. logic 0 = during auto rs-485, rts# control output signal to the transceiver is logic 1 for transmit and logic 0 for receive. logic 1 = the rts# output control signal to the transceiver is logic 0 for transmit and logic 1 for receive. user must assert rts# for operation to take effect. xfr [7:6]: reserved 4.10 modem status register (msr) - read only this register provides the current state of the modem interface signals, or other peripheral device that the uart is connected. lower four bits of this register are used to indicate the changed information. these bits are set to a logic 1 whenever a signal from the modem changes state. these bits may be used as general purpose inputs/outputs when they are not used with modem signals. msr[0]: delta cts# input flag logic 0 = no change on cts# input (default). logic 1 = the cts# input has changed state since the last time it was monitored. a modem status interrupt will be generated if msr interrupt is enabled (ier bit-3). msr[1]: delta dsr# input flag logic 0 = no change on dsr# input (default). logic 1 = the dsr# input has changed state since the last time it was monitored. a modem status interrupt will be generated if msr interrupt is enabled (ier bit-3). msr[2]: delta ri# input flag logic 0 = no change on ri# input (default). logic 1 = the ri# input has changed from a logic 0 to a logic 1, ending of the ringing signal. a modem status interrupt will be generated if msr interrupt is enabled (ier bit-3). msr[3]: delta cd# input flag logic 0 = no change on cd# input (default). logic 1 = indicates that the cd# input has changed state since the last time it was monitored. a modem status interrupt will be generated if msr interrupt is enabled (ier bit-3). msr[4]: cts input status cts# pin may function as automatic hardware flow control signal input if it is enabled and selected by auto cts (efr bit-7). auto cts flow control allows starting and stopping of local data transmissions based on the modem cts# signal. a logic 1 on the cts# pin will stop uart transmitter as soon as the current character has finished transmission, and a logic 0 will resume data transmission. normally msr bit-4 bit is the compliment of the cts# input. however in the loopback mode, this bit is equivalent to the rts# bit in the mcr register. the cts# input may be used as a general purpose input when the modem interface is not used. msr[5]: dsr input status dsr# (active high, logical 1). normally this bit is the compliment of the dsr# input. in the loopback mode, this bit is equivalent to the dtr# bit in the mcr register. the dsr# input may be used as a general purpose input when the modem interface is not used.
? ? ? ? ST16C650A rev. 5.0.0 2.90v to 5.5v uart with 32-byte fifo 35 msr[6]: ri input status ri# (active high, logical 1). normally this bit is the compliment of the ri# input. in the loopback mode this bit is equivalent to bit-2 in the mcr register. the ri# input may be used as a general purpose input when the modem interface is not used. msr[7]: cd input status cd# (active high, logical 1). normally this bit is the compliment of the cd# input. in the loopback mode this bit is equivalent to bit-3 in the mcr register. the cd# input may be used as a general purpose input when the modem interface is not used. 4.11 infrared transmit pulse width control register (irpw) - write only the irpw register allows the user to program the encoders pulse width. this cuts the led on-time, hence, reducing power consumption. irpw [7:0]: pulse width control a 0x00 value (default) will set the pulse width to normal width of 3/16 of the data bit rate. the programmable infrared pulse width can be calculated using the following equation: infrared pulse width (pw) = crystal clock period x n, where n is the value in irpw from 1 to 255. examples: crystal frequency = 14.7456mhz (clock period of 67.82ns) pw = 67.82 x n or ranges from 67.82ns to 17.29ms caution: never allow pw to exceed the operating data rate bit period, else the encoder stops. 4.12 scratch pad register (spr) this is an 8-bit general purpose register for the user to store temporary data. the content of this register is preserved during sleep mode but becomes 0xff (default) after a reset or a power off-on cycle. 4.13 baud rate generator divisors (dll and dlm) - read/write the baud rate generator (brg) is a 16-bit counter that generates the data rate for the transmitter. the rate is programmed through registers dll and dlm which are only accessible when lcr bit-7 is set to 1. see programmable baud rate generator section for more details. the concatenation of the contents of dlm and dll gives the 16-bit divisor value which is used to calculate the baud rate: baud rate = (clock frequency / 16) / divisor also see mcr bit-7 and ta b l e 4 . 4.14 device identification register (dvid) - read only this register contains the device id (0x04 for ST16C650A). prior to reading this register, dll and dlm should be set to 0x00. 4.15 device revision register (drev) - read only this register contains the device revision information. for example, 0x01 means revision a. prior to reading this register, dll and dlm should be set to 0x00. 4.16 enhanced feature register (efr) enhanced features are enabled or disabled using this register. bit 0-3 provide single or dual consecutive character software flow control selection (see ta b l e 1 2 ). when the xon1 and xon2 and xoff1 and xoff2 modes are selected, the double 8-bit words are concatenated into two sequential characters. caution: note that whenever changing the tx or rx flow control bits, always reset all bits back to logic 0 (disable) before programming a new setting.
ST16C650A ? ? ? ? 2.90v to 5.5v uart with 32-byte fifo rev. 5.0.0 36 efr[3:0]: software flow control select combinations of software flow control can be selected by programming these bits. efr[4]: enhanced function bits enable enhanced function control bit. this bit enables ier bits 4-7, isr bits 4-5, fcr bits 4-5, mcr bits 5-7, xfr bits 0-7 and irpw bits 0-7 to be modified. after modifying any enhanced bits, efr bit-4 can be set to a logic 0 to latch the new values. this feature prevents legacy software from altering or overwriting the enhanced functions once set. normally, it is recommended to leave it enabled, logic 1. logic 0 = modification disable/latch enhanced features. ier bits 4-7, isr bits 4-5, fcr bits 4-5, mcr bits 5- 7, xfr bits 0-7 and irpw bits 0-7 are saved to retain the user settings. after a reset, the ier bits 4-7, isr bits 4-5, fcr bits 4-5, mcr bits 5-7, xfr bits 0-7 and irpw bits 0-7 are set to a logic 0 to be compatible with st16c550 mode. (default). logic 1 = enables the above-mentioned register bits to be modified by the user. efr[5]: special character detect enable logic 0 = special character detect disabled. (default) logic 1 = special character detect enabled. the uart compares each incoming receive character with data in xoff-2 register. if a match exists, the received data will be transferred to fifo and isr bit-4 will be set to indicate detection of the special character. bit-0 corresponds with the lsb bit for the receive character. if flow control is set for comparing xon1, xoff1 (efr [1:0]=10) then flow control and special character work normally. however, if flow control is set for comparing xon2, xoff2 (efr[1:0]=01) then flow control works normally, but xoff2 will not go to the fifo, and will generate an xoff interrupt and a special character interrupt. t able 12: s oftware f low c ontrol f unctions efr bit -3 efr bit -2 efr bit -1 efr bit -0 t ransmit and r eceive s oftware f low c ontrol 0 0 0 0 no tx and rx flow control (default and reset) 0 0 x x no transmit flow control 1 0 x x transmit xon1/xoff1 0 1 x x transmit xon2/xoff2 1 1 x x transmit xon1 and xon2/xoff1 and xoff2 x x 0 0 no receive flow control x x 1 0 receiver compares xon1/xoff1 x x 0 1 receiver compares xon2/xoff2 1 0 1 1 transmit xon1/ xoff1, receiver compares xon1 or xon2, xoff1 or xoff2 0 1 1 1 transmit xon2/xoff2, receiver compares xon1 or xon2, xoff1 or xoff2 1 1 1 1 transmit xon1 and xon2/xoff1 and xoff2, receiver compares xon1 and xon2/xoff1 and xoff2 0 0 1 1 no transmit flow control, receiver compares xon1 and xon2/xoff1 and xoff2
? ? ? ? ST16C650A rev. 5.0.0 2.90v to 5.5v uart with 32-byte fifo 37 efr[6]: auto rts flow control enable rts# output may be used for hardware flow control by setting efr bit-6 to logic 1. when auto rts is selected, an interrupt will be generated (if ier bit-6 = 1) when the receive fifo is filled to the programmed trigger level and rts de-asserts to a logic 1 at the next upper trigger level. rts# will return to a logic 0 when fifo data falls below the next lower trigger level. the rts# output must be asserted (logic 0) before the auto rts can take effect. rts# pin will function as a general purpose output when hardware flow control is disabled. logic 0 = automatic rts flow control is disabled. (default) logic 1 = enable automatic rts flow control. efr[7]: auto cts flow control enable automatic cts flow control. logic 0 = automatic cts flow control is disabled. (default) logic 1 = enable automatic cts flow control. data transmission stops when cts# input de-asserts to logic 1. data transmission resumes when cts# input returns to a logic 0. 4.17 software flow control registers (xoff1, xoff2, xon1, xon2) - read/write these registers are used as the programmable software flow control characters xoff1, xoff2, xon1, and xon2. for more details, see ta b l e 5 .
ST16C650A ? ? ? ? 2.90v to 5.5v uart with 32-byte fifo rev. 5.0.0 38 t able 13: uart reset conditions registers reset state dll bits 7-0 = 0xxx dlm bits 7-0 = 0xxx rhr bits 7-0 = 0xxx thr bits 7-0 = 0xxx ier bits 7-0 = 0x00 fcr bits 7-0 = 0x00 isr bits 7-0 = 0x01 lcr bits 7-0 = 0x00 mcr bits 7-0 = 0x00 lsr bits 7-0 = 0x60 xfr bits 7-0 = 0x00 msr bits 3-0 = logic 0 bits 7-4 = logic levels of the inputs irpw bits 7-0 = 0x00 spr bits 7-0 = 0xff efr bits 7-0 = 0x00 xon1 bits 7-0 = 0x00 xon2 bits 7-0 = 0x00 xoff1 bits 7-0 = 0x00 xoff2 bits 7-0 = 0x00 i/o signals reset state tx normal = logic 1 infrared = logic 0 rts# logic 1 dtr# logic 1 op1# logic 1 op2# logic 1 txrdy# logic 0 rxrdy# logic 1 int (16 mode) int# (68 mode) irqa, irqb, irqc (pc mode) logic 0 logic 1 three-state condition
? ? ? ? ST16C650A rev. 5.0.0 2.90v to 5.5v uart with 32-byte fifo 39 test 1: the following inputs should remain steady at vcc or gnd state to minimize sleep current: a0-a2, d0-d7, ior#, iow#, cs# and modem inputs. also, rx input must idle at logic 1 state while in sleep mode. in mixed voltage environments, where the voltage at any of the inputs of the 651 is lower than its vcc supply voltage, the sleep current will be higher than the maximum values given here. absolute maximum ratings power supply range 7 volts voltage at any pin -0.5 to 7v operating temperature -40 o to +85 o c storage temperature -65 o to +150 o c package dissipation 500 mw thermal resistance (7x7x1.4mm 48-tqfp) theta-ja = 59 o c/w, theta-jc = 16 o c/w electrical characteristics dc electrical characteristics u nless otherwise noted : ta=0 o to 70 o c (-40 o to +85 o c for industrial grade package ), v cc is 2.90v to 5.5v s ymbol p arameter l imits 3.3v m in m ax l imits 5.0v m in m ax u nits c ondition v ilck clock input low level -0.3 0.6 -0.5 0.6 v v ihck clock input high level 2.4 vcc 3.0 vcc v v il input low voltage -0.3 0.8 -0.5 0.8 v v ih input high voltage (top mark date code of "gc yyww" and older) 2.0 vcc 2.0 vcc v v ih input high voltage (top mark date code of "hc yyww" and newer) 2.0 5.5 2.0 5.5 v v ol output low voltage 0.4 v i ol = 5 ma v ol output low voltage 0.4 v i ol = 4 ma v oh output high voltage 2.4 v i oh = -5 ma v oh output high voltage 2.0 v i oh = -1 ma i il input low leakage current +/-10 +/-10 ua i ih input high leakage current +/-10 +/-10 ua c in input pin capacitance 5 5 pf i cc power supply current 1.3 3.0 ma i sleep sleep current 30 100 ua see test1
ST16C650A ? ? ? ? 2.90v to 5.5v uart with 32-byte fifo rev. 5.0.0 40 ac electrical characteristics ta = 0 o to 70 o c (-40 o to +85 o c for industrial grade package ), v cc is 2.90v to 5.5v, 70 p f l oad where applicable s ymbol p arameter l imits 3.3v m in m ax l imits 5.0v m in m ax u nit clk clock pulse duration 30 20 ns osc crystal frequency 20 24 mhz osc external clock frequency 33 50 mhz t as address setup time (as# tied to gnd) 5 5 ns t ah address hold time (as# tied to gnd) (top mark date code of "hc yyww" and older) 10 10 ns t ah address hold time (as# tied to gnd) (top mark date code of "i2 yyww" and newer) 00ns t cs chip select width 50 40 ns t rd ior# strobe width 50 40 ns t dy read/write cycle delay 40 30 ns t rdv data access time 40 30 ns t dd data disable time 0 15 0 10 ns t wr iow# strobe width 50 40 ns t ds1 data setup time (as# tied to gnd) 20 10 ns t dh1 data hold time (as# tied to gnd) 5 5 ns t asw address strobe width 35 25 ns t as1 address setup time (as# used) 5 5 ns t ah1 address hold time (as# used) 10 10 ns t as2 address setup time (as# used) 5 5 ns t ah2 address hold time (as# used) 10 10 ns t cs1 delay from chip select to as# 5 5 ns t csh delay from as# to chip select 0 0 ns t cs2 delay from as# to chip select 5 5 ns t rd1 delay from as# to read 10 10 ns t rd2 delay from chip select to ior# 10 10 ns t dis delay from ior# to ddis# 15 10 ns t wr1 delay from as# to iow# 10 10 ns
? ? ? ? ST16C650A rev. 5.0.0 2.90v to 5.5v uart with 32-byte fifo 41 t ds2 data setup time (as# used) 20 10 ns t dh2 data hold time (as# used) 5 5 ns t as3 address setup time (pc mode) 5 5 ns t rd3 delay from aen# to ior# 10 10 ns t rd4 delay from ior# to aen# 10 10 ns t wr2 delay from aen# to iow# 10 10 ns t wr3 delay from iow# to aen# 10 10 ns t ds3 data setup time (pc mode) 20 10 ns t dh3 data hold time (pc mode) 5 5 ns t wdo delay from iow# to output 50 40 ns t mod delay to set interrupt from modem input 40 35 ns t rsi delay to reset interrupt from ior# 40 35 ns t ssi delay from stop to set interrupt 1 1 bclk t rri delay from ior# to reset interrupt 45 40 ns t si delay from stop to interrupt 45 40 ns t int delay from initial int reset to transmit start 8 24 8 24 bclk t wri delay from iow# to reset interrupt 45 40 ns t ssr delay from stop to set rxrdy# 1 1 bclk t rr delay from ior# to reset rxrdy# 45 40 ns t wt delay from iow# to set txrdy# 45 40 ns t srt delay from center of start to reset txrdy# 8 8 bclk t rst reset pulse width 40 40 ns n baud rate divisor 1 2 16 -1 1 2 16 -1 - bclk baud clock 16x of data rate hz ac electrical characteristics ta = 0 o to 70 o c (-40 o to +85 o c for industrial grade package ), v cc is 2.90v to 5.5v, 70 p f l oad where applicable s ymbol p arameter l imits 3.3v m in m ax l imits 5.0v m in m ax u nit
ST16C650A ? ? ? ? 2.90v to 5.5v uart with 32-byte fifo rev. 5.0.0 42 f igure 16. c lock t iming f igure 17. m odem i nput /o utput t iming osc clk clk external clock iow # iow rts# dtr# cd# cts# dsr# int ior# ior ri# twdo tmod tmod trsi tmod active active change of state change of state active active active change of state change of state change of state active active
? ? ? ? ST16C650A rev. 5.0.0 2.90v to 5.5v uart with 32-byte fifo 43 f igure 18. d ata b us r ead t iming in i ntel b us m ode with as# tied to gnd f igure 19. d ata b us w rite t iming in i ntel b us m ode with as# tied to gnd t as t dd t ah t rd t rdv t dy t dd t rdv t ah t as t cs valid address valid address valid data valid data a0- a2 cs2# ior# d0-d7 t cs t rd cs0 cs1 ior note: only one chipselect and one read strobe should be used. t as t dh1 t ah t wr t ds1 t dy t dh1 t ds1 t ah t as t cs valid address valid address valid data valid data a0- a2 cs2# iow# d0-d7 t cs t wr cs1 cs0 iow note: only one chipselect and one write strobe should be used.
ST16C650A ? ? ? ? 2.90v to 5.5v uart with 32-byte fifo rev. 5.0.0 44 f igure 20. d ata b us r ead t iming in i ntel b us m ode using as# f igure 21. d ata b us w rite t iming in i ntel b us m ode using as# t as1 t dd t ah1 t rd t rdv t dy valid address valid data a0-a2 cs2# ior# d0-d7 t cs cs0 or cs1 ior as# t asw t cs1 t csh t rd1 ddis# t asw valid address t cs t ah2 t csh t dis t rd2 t rd t dis t rdv valid data t dd t as2 t cs2 note: only one chipselect and one read strobe should be used. t as1 t dh2 t ah1 t wr t ds2 t dy valid address valid data a0-a2 cs2# iow# d0-d7 t cs cs0 or cs1 iow as# t asw t cs1 t csh t wr1 t asw valid address t cs t ah2 t csh t wr1 t wr valid data t dh2 t as2 t cs1 t ds2 note: only one chipselect and one write strobe should be used.
? ? ? ? ST16C650A rev. 5.0.0 2.90v to 5.5v uart with 32-byte fifo 45 f igure 22. d ata b us r ead t iming in pc m ode f igure 23. d ata b us w rite t iming in pc m ode t as3 t dd t rd4 t rd t rdv t dy t dd t rdv t rd4 t as3 t cs valid address valid address valid data valid data a0-a9 aen# ior# d0-d7 rdtm t cs t rd t rd3 t rd3 t as3 t dh3 t wr3 t wr t ds3 t dy t dh3 t ds3 t wr3 t as3 t cs valid address valid address valid data valid data a0-a9 aen# iow# d0-d7 t cs t wr t wr2 t wr2
ST16C650A ? ? ? ? 2.90v to 5.5v uart with 32-byte fifo rev. 5.0.0 46 f igure 24. r eceive r eady & i nterrupt t iming [n on -fifo m ode ] f igure 25. t ransmit r eady & i nterrupt t iming [n on -fifo m ode ] rx rxrdy# ior# int d0:d7 start bit d0:d7 stop bit d0:d7 t ssr 1 byte in rhr active data ready active data ready active data ready 1 byte in rhr 1 byte in rhr t ssr t ssr rxnfm t rr t rr t rr t ssr t ssr t ssr (reading data out of rhr) tx txrdy# iow# int* d0:d7 start bit d0:d7 stop bit d0:d7 t wt txnonfifo t wt t wt t wri t wri t wri t srt t srt t srt *int is cleared when the isr is read or when data is loaded into the thr. isr is read isr is read isr is read (loading data into thr) (unloading) ier[1] enabled
? ? ? ? ST16C650A rev. 5.0.0 2.90v to 5.5v uart with 32-byte fifo 47 f igure 26. r eceive r eady & i nterrupt t iming [fifo m ode , dma d isabled ] f igure 27. r eceive r eady & i nterrupt t iming [fifo m ode , dma e nabled ] rx rxrdy# ior# int d0:d7 s t ssr rxintdma# rx fifo fills up to rx trigger level or rx data timeout rx fifo drops below rx trigger level fifo empties first byte is received in rx fifo d0:d7 s d0:d7 t d0:d7 s d0:d7 s t d0:d7 s t t d0:d7 s t start bit stop bit t rr t rri t ssi (reading data out of rx fifo) rx rxrdy# ior# int d0:d7 s t ssr rxfifodma rx fifo fills up to rx trigger level or rx data timeout rx fifo drops below rx trigger level fifo empties d0:d7 s d0:d7 t d0:d7 s d0:d7 s t d0:d7 s t t d0:d7 s t start bit stop bit t rr t rri t ssi (reading data out of rx fifo)
ST16C650A ? ? ? ? 2.90v to 5.5v uart with 32-byte fifo rev. 5.0.0 48 f igure 28. t ransmit r eady & i nterrupt t iming [fifo m ode , dma m ode d isabled ] f igure 29. t ransmit r eady & i nterrupt t iming [fifo m ode , dma m ode e nabled ] tx txrdy# iow# int* txdma# d0:d7 s d0:d7 t d0:d7 s d0:d7 s t d0:d7 s t t d0:d7 s t start bit stop bit t wri (unloading) (loading data into fifo) last data byte transmitted tx fifo fills up to trigger level tx fifo drops below trigger level data in tx fifo tx fifo empty t wt t srt tx fifo empty t t s t si isr is read ier[1] enabled isr is read *int is cleared when the isr is read or when tx fifo fills up to the trigger level. tx txrdy# iow# int* d0:d7 s txdma d0:d7 s d0:d7 t d0:d7 s d0:d7 s t d0:d7 s t t d0:d7 s t start bit stop bit t wri t (unloading) (loading data into fifo) last data byte transmitted tx fifo fills up to trigger level tx fifo drops below trigger level at least 1 empty location in fifo t srt tx fifo full t wt t si isr read isr read *int cleared when the isr is read or when tx fifo fills up to trigger level. ier[1] enabled
? ? ? ? ST16C650A rev. 5.0.0 2.90v to 5.5v uart with 32-byte fifo 49 package dimensions (48 pin tqfp - 7 x 7 x 1 mm ) note: the control dimension is the millimeter column inches millimeters symbol min max min max a 0.039 0.047 1.00 1.20 a 1 0.002 0.006 0.05 0.15 a 2 0.037 0.041 0.95 1.05 b 0.007 0.011 0.17 0.27 c 0.004 0.008 0.09 0.20 d 0.346 0.362 8.80 9.20 d 1 0.272 0.280 6.90 7.10 e 0.020 bsc 0.50 bsc l 0.018 0.030 0.45 0.75 a 0 7 0 7 36 25 24 13 1 1 2 37 48 d d 1 d d 1 b e a a 2 a 1 a seating plane l c
ST16C650A ? ? ? ? 2.90v to 5.5v uart with 32-byte fifo rev. 5.0.0 50 package dimensions (44 pin plcc) note: the control dimension is the millimeter column inches millimeters symbol min max min max a 0.165 0.180 4.19 4.57 a 1 0.090 0.120 2.29 3.05 a 2 0.020 --- 0.51 --- b 0.013 0.021 0.33 0.53 b 1 0.026 0.032 0.66 0.81 c 0.008 0.013 0.19 0.32 d 0.685 0.695 17.40 17.65 d 1 0.650 0.656 16.51 16.66 d 2 0.590 0.630 14.99 16.00 d 3 0.500 typ. 12.70 typ. e 0.050 bsc 1.27 bsc h 1 0.042 0.056 1.07 1.42 h 2 0.042 0.048 1.07 1.22 r 0.025 0.045 0.64 1.14 44 lead plastic leaded chip carrier (plcc) rev. 1.00 1 d d 1 a a 1 d d 1 d 3 b a 2 b 1 e seating plane d 2 244 d 3 c r 45 x h 2 45 x h 1
? ? ? ? ST16C650A rev. 5.0.0 2.90v to 5.5v uart with 32-byte fifo 51 notice exar corporation reserves the right to make changes to the products contained in this publication in order to improve design, performance or reliability. exar corporation assumes no responsibility for the use of any circuits described herein, conveys no license under any patent or other right, and makes no representation that the circuits are free of patent infringement. charts and schedules contained here in are only for illustration purposes and may vary depending upon a users specific application. while the information in this publication has been carefully checked; no responsibility, however, is assumed for inaccuracies. exar corporation does not recommend the use of any of its products in life support applications where the failure or malfunction of the product can reasonably be expected to cause failure of the life support system or to significantly affect its safety or effectiveness. products are not authorized for use in such applications unless exar corporation receives, in writing, assurances to its satisfaction that: (a) the risk of injury or damage has been minimized; (b) the user assumes all such risks; (c) potential liability of exar corporation is adequately protected under the circumstances. copyright 2004 exar corporation datasheet january 2004. send your uart technical inquiry with technical details to hotline: uarttechsupport@exar.com . reproduction, in part or whole, without the prior written consent of exar corporation is prohibited. revision history date revision description january 2001 4.20 updated information specific to device revision "fc" and newer: n 2.90v to 5.5v operation with 5v tolerant inputs n 3.125 mbps dta rate at 5v and 2 mbps at 3.3v n auto rs485 half-duplex control output n wireless infrared (irda) encoder with programmable pulse width capability and decoder interface n description of device id & revision, irpw and xfr registers december 2001 4.30 updated values in ac electrical characteristics table. january 2004 5.0.0 changed to standard style format. clarified timing diagrams. added device status to ordering information. devices with top mark date code of "i2 yyww" and newer have 0 ns address hold time. devices with top mark date code of "hc yyww" and older do not have this feature.
ST16C650A ? ? ? ? 2.90v to 5.5v uart with 32-byte fifo rev. 5.0.0 i table of contents general description .................................................................................................1 f eatures ............................................................................................................................... ....................1 a pplications ............................................................................................................................... ..............1 f igure 1. b lock d iagram ............................................................................................................................... ...................................... 1 f igure 2. i ntel and pc mode p in o ut ............................................................................................................................... .................. 2 pin descriptions ........................................................................................................3 ordering information ..............................................................................................................................3 1.0 product description ....................................................................................................... ........ 7 2.0 functional descriptions .............................................................................................. 8 2.1 h ost d ata b us i nterface ................................................................................................................ 8 f igure 3. ST16C650A i ntel b us i nterconnections .......................................................................................................................... 8 f igure 4. ST16C650A m otorola b us i nterconnections .................................................................................................................. 9 f igure 5. ST16C650A pc m ode i nterconnections ........................................................................................................................... 9 2.1.1 pc mode.................................................................................................................. ............................... 10 t able 1: pc m ode i nterface o n - chip a ddress d ecoder and i nterrupt s election . .................................................................... 10 f igure 6. pc m ode i nterface in an e mbedded a pplication . ........................................................................................................... 10 2.2 5-v olt t olerant i nputs ................................................................................................................. 11 2.3 d evice r eset .............................................................................................................................. .... 11 2.4 d evice i dentification and r evision ............................................................................................... 11 2.5 dma m ode .............................................................................................................................. ........ 11 t able 2: txrdy# and rxrdy# o utputs in fifo and dma m ode .................................................................................................. 11 2.6 i nterrupt .............................................................................................................................. .......... 12 t able 3: i nterrupt o utput (int and irqa) f unctions ................................................................................................................... 12 2.7 c rystal o scillator or e xternal c lock ...................................................................................... 13 2.8 p rogrammable b aud r ate g enerator ......................................................................................... 13 f igure 7. t ypical oscillator connections ............................................................................................................................... ....... 13 2.9 t ransmitter .............................................................................................................................. ...... 14 f igure 8. b aud r ate g enerator ............................................................................................................................... ........................ 14 t able 4: t ypical data rates with a 14.7456 mh z crystal or external clock .............................................................................. 14 2.9.1 transmit holding register (thr) - write only ............................................................................. ............ 15 2.9.2 transmitter operation in non-fifo mode ................................................................................... ............. 15 2.9.3 transmitter operation in fifo mode....................................................................................... ................. 15 f igure 9. t ransmitter o peration in non -fifo m ode ...................................................................................................................... 15 f igure 10. t ransmitter o peration in fifo and f low c ontrol m ode ........................................................................................... 15 2.10 r eceiver .............................................................................................................................. ......... 16 2.10.1 receive holding register (rhr) - read-only .............................................................................. ......... 16 f igure 11. r eceiver o peration in non -fifo m ode ......................................................................................................................... 16 2.11 a utomatic rts (h ardware ) f low c ontrol ............................................................................... 17 2.12 a uto cts f low c ontrol ............................................................................................................. 17 f igure 12. r eceiver o peration in fifo and a uto rts f low c ontrol m ode ............................................................................... 17 2.13 a uto x on /x off (s oftware ) f low c ontrol ................................................................................ 18 f igure 13. a uto rts and cts f low c ontrol o peration .............................................................................................................. 18 2.14 s pecial c haracter d etect ......................................................................................................... 19 2.15 a uto rs485 h alf - duplex c ontrol ............................................................................................ 19 t able 5: a uto x on /x off (s oftware ) f low c ontrol ....................................................................................................................... 19 t able 6: rs485 h alf -d uplex c ontrol ............................................................................................................................... .............. 19 2.16 i nfrared m ode ............................................................................................................................. 20 f igure 14. i nfrared t ransmit d ata e ncoding and r eceive d ata d ecoding ................................................................................. 20 2.17 s leep m ode & w ake - up i ndicator ............................................................................................... 21 2.17.1 sleep mode in ir mode ................................................................................................... ....................... 21 2.18 i nternal l oopback ....................................................................................................................... 22 f igure 15. i nternal l oop b ack ............................................................................................................................... .......................... 22 3.0 uart configuration registers ................................................................................. 23 t able 7: ST16C650A uart configuration registers ..................................................................................... ..................... 23 t able 8: uart configuration registers description. s haded bits are enabled when efr b it -4=1. .......................... 24 4.0 internal register descriptions ............................................................................................ .. 25
? ? ? ? ST16C650A rev. 5.0.0 2.90v to 5.5v uart with 32-byte fifo ii 4.1 r eceive h olding r egister (rhr) - r ead -o nly ............................................................................ 25 4.2 t ransmit h olding r egister (thr) - w rite -o nly ......................................................................... 25 4.3 i nterrupt e nable r egister (ier) - r ead /w rite .......................................................................... 25 4.3.1 ier versus receive fifo interrupt mode operation ......................................................................... ...... 25 4.3.2 ier versus receive/transmit fifo polled mode operation................................................................... . 26 4.4 i nterrupt s tatus r egister (isr) - r ead -o nly ............................................................................ 27 4.4.1 interrupt generation: .................................................................................................... ............................ 27 4.4.2 interrupt clearing: ...................................................................................................... .............................. 27 4.5 fifo c ontrol r egister (fcr) - w rite -o nly ............................................................................... 28 t able 9: i nterrupt s ource and p riority l evel ............................................................................................................................... 28 4.6 l ine c ontrol r egister (lcr) - r ead /w rite ................................................................................ 29 t able 10: t ransmit and r eceive fifo t rigger l evel s election with auto rts hysteresis ....................................................... 29 t able 11: p arity selection ............................................................................................................................... ................................. 30 4.7 m odem c ontrol r egister (mcr) or g eneral p urpose o utputs c ontrol - r ead /w rite ....... 31 4.8 l ine s tatus r egister (lsr) - r ead o nly ..................................................................................... 32 4.9 e xtra f eature r egister (xfr) - w rite o nly .............................................................................. 33 4.10 m odem s tatus r egister (msr) - r ead o nly ............................................................................. 34 4.11 i nfrared t ransmit p ulse w idth c ontrol r egister (irpw) - w rite o nly ............................. 35 4.12 s cratch p ad r egister (spr) ..................................................................................................... 35 4.13 b aud r ate g enerator d ivisors (dll and dlm) - r ead /w rite ................................................. 35 4.14 d evice i dentification r egister (dvid) - r ead o nly ................................................................. 35 4.15 d evice r evision r egister (drev) - r ead o nly ......................................................................... 35 4.16 e nhanced f eature r egister (efr) ............................................................................................ 35 t able 12: s oftware f low c ontrol f unctions ............................................................................................................................... 36 4.17 s oftware f low c ontrol r egisters (xoff1, xoff2, xon1, xon2) - r ead /w rite ............... 37 t able 13: uart reset conditions ..................................................................................................... ........................................ 38 electrical characteristics................................................................................ 39 dc e lectrical c haracteristics ........................................................................................................... 39 ac e lectrical c haracteristics ........................................................................................................... 40 ta=0 o to 70 o c (-40 o to +85 o c for industrial grade package ), v cc is 2.90v to 5.5v, 70 p f l oad where applicable 40 f igure 16. c lock t iming ............................................................................................................................... ..................................... 42 f igure 17. m odem i nput /o utput t iming ............................................................................................................................... ............. 42 f igure 18. d ata b us r ead t iming in i ntel b us m ode with as# tied to gnd................................................................................. 43 f igure 19. d ata b us w rite t iming in i ntel b us m ode with as# tied to gnd ............................................................................... 43 f igure 20. d ata b us r ead t iming in i ntel b us m ode using as#..................................................................................................... 44 f igure 21. d ata b us w rite t iming in i ntel b us m ode using as# ................................................................................................... 44 f igure 22. d ata b us r ead t iming in pc m ode ............................................................................................................................... .. 45 f igure 23. d ata b us w rite t iming in pc m ode ............................................................................................................................... .45 f igure 24. r eceive r eady & i nterrupt t iming [n on -fifo m ode ] ................................................................................................... 46 f igure 25. t ransmit r eady & i nterrupt t iming [n on -fifo m ode ] ................................................................................................. 46 f igure 26. r eceive r eady & i nterrupt t iming [fifo m ode , dma d isabled ].................................................................................. 47 f igure 27. r eceive r eady & i nterrupt t iming [fifo m ode , dma e nabled ] .................................................................................. 47 f igure 28. t ransmit r eady & i nterrupt t iming [fifo m ode , dma m ode d isabled ] ..................................................................... 48 f igure 29. t ransmit r eady & i nterrupt t iming [fifo m ode , dma m ode e nabled ] ...................................................................... 48 p ackage d imensions (48 pin tqfp - 7 x 7 x 1 mm ) ................................................................................. 49 p ackage d imensions (44 pin plcc) ...................................................................................................... 50 r evision h istory ............................................................................................................................... ..... 51 table of contents ............................................................................................................. .................... i


▲Up To Search▲   

 
Price & Availability of ST16C650A

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X